Doctor Ledford Online
Assignment 3.03
​Show me the code!
3.03
Before you begin
Start off by downloading the 3.03 Show Me the Code Assignment Instructions below. Be sure to look over the Grading Rubric on the last page so that you know what your Instructor is looking for.

3.03_show_me_the_code_assignment_instructions_and_rubric.docx | |
File Size: | 217 kb |
File Type: | docx |
Step 1
Start off your project the same way you did with 1.04, 2.02, and 2.05: head to the Scratch website or your desktop Scratch app and login. Then, click "Create" to start a new program.
|
Step 2
Since this is a quiz, it makes sense to start with the questions! Decide on three simple questions for a chosen topic.
Example:
Question: "What is the capital of Georgia?"
Answer: "Atlanta"
**PRO TIP!** Having questions with very short or even one-word answers will reduce the number of errors you’ll need to fix, as well as the troubleshooting you’ll need to do, later on!
Example:
Question: "What is the capital of Georgia?"
Answer: "Atlanta"
**PRO TIP!** Having questions with very short or even one-word answers will reduce the number of errors you’ll need to fix, as well as the troubleshooting you’ll need to do, later on!
Step 3
Armed with your questions in hand and a new program queued up, add a new sprite that will host the game.
**PRO TIP!** Here’s a chance to show off your creativity! Try to choose a fun sprite to be a host and change up your background to match.
**PRO TIP!** Here’s a chance to show off your creativity! Try to choose a fun sprite to be a host and change up your background to match.
Step 4
Use the following steps to write the code for your game.
For more help, or just to get a visual, check out this YouTube video:
- Have the program start when the user clicks on the green flag
- Have your trivia quiz host ask question number 1.
- Example: What is the capital of Georgia?
- Have the user enter a response into the input box.
- Example: Atlanta
- Your program should take the user's input and store it in a variable called: answer.
- Have the program check to see if the user’s response is the correct answer. **NOTE: that the answer will need to be with correct capitalization.**
- If correct, the quiz should say something along the lines of: "Good job. That’s correct."
- If not correct, the quiz should say: "That is incorrect. The correct answer is 'Atlanta'."
- Repeat steps 3–6 for until you have three questions or more.
For more help, or just to get a visual, check out this YouTube video:
Challenge!
**PRO TIP!** There are many ways to skin a cat, as they say (please don't use ANY of them!), and there are also many ways to write a quiz in Scratch. Check out this site for a breakdown and examples of the "Simple", "List", "Group", and "Mathematical" Methods.
If you're looking to really elevate your Scratch game, consider adding some (or all!) of these elements to make your quiz even more engaging.
- Can you add a scoring system?
- Would you like to remove points for incorrect scores?
- Would you like to add sound effects if the player achieves a score of 10?
- Would you like to add sound effects if the player gets the answer wrong?
- What else can you add to your quiz game project?