Copy of Activity Guide - Loops Make - Unit 6 Lesson 8
Copy of Activity Guide - Loops Make - Unit 6 Lesson 8
Step 2 - Plan
Fill in the information in the table below for each event handler you'll need to create
colorButton
Changes the icon's color to a random color using a loop to ensure varied outcomes.
shapeButton
Changes the icon's shape randomly without repeating the last shape used.
moveButton
Moves the icon to a random position on the screen using a loop for animated effect.
Fill in the table below for each variable you'll need to create.
Variable Name What the Variable Stores
colors
shapes
An array or list of shape types available for icons.
Input onEvents are created onEvents are created onEvents are created onEvents are not
for all the required for most of the inputs. for some of the inputs. created for any inputs.
inputs.
Variables and Variables and lists are Variables and lists Some information is There are no variables
Lists created and are created and stored in variables and or lists which store the
appropriately used for appropriately used for lists and appropriately necessary information
all pieces of most pieces of updated throughout for the app to work
information used in the information used in the app. correctly.
app. the app.
Loops The program correctly The program The program correctly The program does not
uses loops for all three correctly uses a loop uses lists for one of include or correctly
buttons to generate the for two of the buttons the buttons to use any loops.
expected output. to generate the generate the expected
expected output. output.
Output All three buttons work Only two of the Only one of the None of the buttons
as expected to move buttons work as buttons work as work as expected.
icons, change their expected. expected.
colors, and change
their icon to a random
new icon.
Code runs No errors are present Some errors are Many errors are The code does not
without errors. in the required code. present in the present in the required run.
required code. code.
Comments Comments are used to Comments are used Comments are Comments are not
correctly explain the to explain the present, but are not present.
purpose and purpose and used to explain the
functionality of both the functionality of either purpose or
function and event the function or event functionality of the
handlers. handlers. function or event
handlers.