# 8. Project Work Period¶

Quick Overview of Day

Work period to put the concepts learned so far into practice. Your teacher will have you create a project that uses most of the ideas seen so far – a Rock Paper Scissors game is a nice option.

• CS20-CP1 Apply various problem-solving strategies to solve programming problems throughout Computer Science 20.
• CS20-FP1 Utilize different data types, including integer, floating point, Boolean and string, to solve programming problems.
• CS20-FP2 Investigate how control structures affect program flow.

We won’t be learning anything new today. Instead, you will be given time to work on a project that puts to use many of the ideas that we’ve seen so far. Before you begin working on your project, however, you should try the practice quiz below to confirm that you understand the ideas we’ve seen so far.

scratch-project1: What would happen when you click the green flag, given the code below?

• The current sprite would say "Hi" for 1 second, then say "there" for 1 second, then say "everyone" for 1 second.
• No. Be sure to look very carefully at the names of the broadcasts!
• The current sprite would say "Hi" for 1 second, then say "everyone" for 1 second, then say "there" for 1 second.
• Yes! The order is controlled by the names of the broadcasts, not which is higher or lower in your script.
• The current sprite would say "Hi" for 1 second, then say "there" for 1 second.
• No. Be sure to look very carefully at the names of the broadcasts!

scratch-project2: What would happen when you click the green flag, given the code below?

• The current sprite would say "Hi" for 1 second, then say "there" for 1 second, then say "everyone" for 1 second.
• No. Be sure to look very carefully at the names of the broadcasts!
• The current sprite would say "Hi" for 1 second, then say "everyone" for 1 second, then say "there" for 1 second.
• No. Be sure to look very carefully at the names of the broadcasts!
• The current sprite would say "Hi" for 1 second, then say "everyone" forever.
• Yes! Since the 'when I receive alpha' block of code calls itself, it will never stop repeating.

Given the code below, how far would the current sprite move when you click the green flag?

Given the code below, how many times will you hear the meow sound when you click the green flag?

Given the code below, how far will the current sprite move when you click the green flag?

Given the code below, what would be the value of x after the following code is executed?

Given the code below, how many iterations would occur when the following code is executed?

Next Section - 9. Built-In Variables (Tempo, Answer and Timer)