Pierce College Different Combinations to Create Loops Program

Instructions attached

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

Also Includes some review responses

Unit 5 Lesson 8
Name(s)_______________________________________________ Period ______ Date ___________________
Activity Guide – Loops Make
Step 1 – Try the app
Try using the different combinations of inputs.
● What does each button change and what does it not
change?
Discuss with a Partner
● Where (if at all) do you think this app is using a list?
● Where (if at all) do you think this app is using a loop?
Step 2 – Plan
Fill in the information in the table below for each event handler you’ll need to create
Element ID
Description of What the Event Handler will Do
Fill in the table below for each variable you’ll need to create.
Variable Name
What the Variable Stores
Computer Science Principles
1
Unit 5 Lesson 8
Step 3 – Write Your Code
● Write the code for the app, using your plan above and the comments provided in Code Studio to help
● Steps You Can Follow
○ Create all the variables from your table above.
○ Give your variables a starting value using the assignment operator (=).
○ Create blank event handlers (onEvent) for each screen element in your table above.
○ Write the code to make each of the three buttons work.
○ HInt: in order to create random colors use the rgba() block with randomNumber(). Read the
documentation for those blocks if you need more help.
○ Use your debugging skills to identify unexpected behavior and fix your program.
○ Comment your code as you go, explaining what each event handler does.
● Extension Ideas
○ Create a way to hide the three buttons when you have a lock screen that you like
○ Add sounds to each button.
○ Change the code for the “shapes” button to guarantee that you never randomly get the same shape
twice in a row.
Step 4 – Submit
Before your submit check the rubric below to make sure your program
Category
Extensive Evidence
Convincing
Evidence
Limited Evidence
No Evidence
Input
onEvents are created
for all the required
inputs.
onEvents are created
for most of the inputs.
onEvents are created
for some of the inputs.
onEvents are not
created for any inputs.
Variables and
Lists
Variables and lists are
created and
appropriately used for
all pieces of
information used in the
app.
Variables and lists
are created and
appropriately used for
most pieces of
information used in
the app.
Some information is
stored in variables and
lists and appropriately
updated throughout
the app.
There are no variables
or lists which store the
necessary information
for the app to work
correctly.
Loops
The program correctly
uses loops for all three
buttons to generate the
expected output.
The program
correctly uses a loop
for two of the buttons
to generate the
expected output.
The program correctly
uses lists for one of
the buttons to
generate the expected
output.
The program does not
include or correctly
use any loops.
Output
All three buttons work
as expected to move
icons, change their
colors, and change
their icon to a random
new icon.
Only two of the
buttons work as
expected.
Only one of the
buttons work as
expected.
None of the buttons
work as expected.
Code runs
without errors.
No errors are present
in the required code.
Some errors are
present in the
required code.
Many errors are
present in the required
code.
The code does not
run.
Comments
Comments are used to
correctly explain the
purpose and
functionality of both the
function and event
handlers.
Comments are used
to explain the
purpose and
functionality of either
the function or event
handlers.
Comments are
present, but are not
used to explain the
purpose or
functionality of the
function or event
handlers.
Comments are not
present.
Computer Science Principles
2
4. Lesson 8: Loops Make (40 minutes estimate)
• Practice making an app that uses lists and programming patterns with lists
3. Create the Lock Screen Maker App in Lesson 8 of Unit 5 using this activity_guide .
4. Check the rubric in the activity guide (and below) to make sure all is completed.
5. Take a screenshot of your finished program and insert into your 9.3Loops document.
6. Take a screenshot of your code in the text view (click the Show Text button in the top right) and insert
into your 9.3Loops document.
7. Record your working app, using a program that allows you to share your presentation with your teacher
through a link, such as Screencastify, Screencast-o-matic, etc, to record your computer screen.
o A video recording of your working app is part of your official Create PT.
o Follow the requirements for the video recording located on page 193 of the AP Computer
Science Principles Course and Exam Description (CED) .
o You will not upload the video to this dropbox.
o Do NOT post your schoolwork to a public forum like YouTube, please.
o Add the link to your shared presentation to your 9.3Loops document.
8. Add the activity guide and your screenshot into one document.
9. Save/download/export your 9.3Loops document as a pdf.
0. Submit your pdf to this assignment dropbox.
Your Activity 9.3 will be graded according to the following:
Rubric – 18 points
Extensive Evidence
Convincing Evidence
Limited Evidence
No Evidence
Category
3 pts
2 pts
1 pt
O pt
on Events are created for
onEvents are defined for on Events are created for
on Events are not created
Input
all the required inputs
most of the inputs
some of the inputs
for any inputs
Variables and lists are
created and
Some information is stored There are no variables or
Variables and lists are
created and appropriately
used for all pieces of
Storage: Variables and
lists which store the
Lists
appropriately used for in variables and lists and
most pieces of
appropriately updated
information used in the throughout the app
necessary information for
information used in the
the app to work correctly
app
app
The program correctly
uses loops for all three
Processing: Loops
The program correctly The program correctly uses
The program does not
uses a loop for two of loops for one of the
include or correctly use
the buttons to generate buttons to generate the
any loops
the expected output expected output
buttons to generate the
expected output
All three buttons work as
expected to move icons,
ktons
None of the buttons

Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER