SCRATCH programming system assignment

timer Asked: Nov 9th, 2016

Question description


i really need help on this! I'm desperate! please follow all instructions, except where is says to input information about my name, class etc.

CS110 - Introduction to Computers and Applications FALL 2016 - Scratch Project #3 Due Date: Friday, November 4th, at 11:00 P.M. Accept Until Date: Friday, November 11th , 11:00 P.M. Evaluation: 15 points Submit to Sakai: Scratch program (.sb2 file) Related Materials: Resources posted in Sakai → Lecture Topics → Scratch Scratch Website: TA Lab Support Schedule (in Sakai Resources Folder) Meet with your TA during office hours; Visit a campus computing center during CS110 Lab Support Hours Questions? Background In this assignment you will use the build another Scratch program. In this program you will be working more with variables, loops, defining your own blocks, and generating random numbers. _____________________________________________________________________ Goal This assignment will require you to create a Scratch program that includes the following instructions (in addition to those used in the previous assignments):  More complicated joins:  Random Numbers Picks a random integer within the specified range.  Nested If-Elses  and repeat until loops More sensing Reports true if current sprite is touching another sprite (Sprite1 in this case), or touching edge, or touching mouse-pointer. (Selected from pull-down menu.) 1 You will also be creating your own blocks in this assignment: Name of procedure (block) parameters Your Task: Create a Math Quiz. You can watch a video of an example program running here. Problem Description: You are to create a math game where you will randomly generate simple arithmetic problems (addition, subtraction, and multiplication) in a game type environment. There are two main sprites: the traveling sprite moves on the stage going towards the goal sprite. In the example, the dog is trying to get to the cheesy-puffs. The traveling sprite moves a bit and then asks a random math problem. With each correct answer, the traveling sprite moves closer to the goal sprite. HOWEVER, if the answer is wrong, the traveling sprite goes back to the start position and starts all over! You must answer math problems correctly moving closer to the goal with each correct answer. When the traveling sprite touches the goal, you win. You will be informed if the answer is correct or not by the traveling sprite. With each correct answer, a counter variable is incremented by 1. The object of the math game is to reach the goal. The game ends when you reach the goal. At that time, an ending backdrop is displayed, the goal disappears, and the total number of correct answers is displayed. How to start: 1. Choose a theme and at least two backdrops (one for the game and one for the ending) . Choose a traveling sprite with at least two costumes (the one that will move towards the goal animating in some way). Choose a goal sprite. Sounds would be great to include. 2. You will need at least three variables: one to count correct answers, one to store the player’s answer, and one to store the correct answer. 3. You will need to write your own block for getProblem. This block will take three parameters: two random numbers between 1 and 10 for the operands of the problem and one random number between 1 and 3 for the operation. For example: 2 is a call to the block getProblem. IF the operation parameter has the value 1 (means ADD) Ask the actual problem: operand1 + operand2 for example: 8 + 2 might be displayed. Wait for an answer input Store the correct answer (operand1 + operand2) in a variable Store the user answer in another variable. Write similar algorithms for SUBTRACT and MULTIPLY inside a nested if block. Ask addition problem Ask subtraction problem Ask multiplication problem 4. You should also consider writing your own block for the traveling sprite to advance. In the example, the dog moves a bit, changes costumes and pauses, moves a bit, changes costumes again and pauses. This should appear to be some sort of animation…walking, dancing, jumping, etc. 5. When the green flag is clicked, Initialize all variables. Set all sprites and backdrops to initial positions and costumes. Repeat until the traveling sprite reaches the goal.  Traveling sprite advances (Calls method advance) towards goal.  Traveling sprite displays problem (Calls method getProblem)  Check if the answer the user input is correct and respond appropriately. You could optionally define your own block to do this as well. When the goal is reached, the repeat until loop will end and the ending events take place. A broadcast to the stage might help. Note: Be creative in choosing your theme and sprites but the game must include generating random math problems as described above. You can watch a video of an example program running here. Use the checklist on the next page when reviewing your work. 3 CS110 - Introduction to Computers and Applications Scratch #3 Assignment (Math Quiz) Self-Check : 15 points Directions: Use the checklist below to review your work before submitting it to Sakai for evaluation by your TA: Read the problem description above to be sure you understand the program specifications. Did you remember to:  Choose an appropriate stage, at least two appropriate sprites o  Traveling sprite moving towards goal sprite. Include at least three variables: one to count correct answers, one to store the player’s answer, and one to store the correct answer.  Generate two random numbers between 1 and 10 to be in the problem.  Generate a random number between 1 and 3 to determine the operation (+, -, or *)  Define Block getProblem that takes three parameters and displays the math problem based on those parameters.  Check input answer against correct answer. o If correct: appropriate message is displayed and traveling sprite advances. The counter variable is incremented by 1. o  If incorrect: appropriate message is displayed and traveling sprite goes back to start. Define block to have the traveling sprite advance towards the goal. This should onclude some animated action (changing costumes) to appear to walk or dance or do something.  When goal is reached, the game ends and appropriate actions/sounds are executed. The backdrop changes.  Each time you run this program the problems generated should be different!  Your program is creative!!! 4
Studypool has helped 1,244,100 students
flag Report DMCA
Similar Questions
Hot Questions
Related Tags
Study Guides

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors