Jumping: Using random numbers
Section 31215: Due Sunday, May 4, 2025
You should complete the lessons Calculations and Functions and Random Numbers before doing this assignment.
Create an animation in Alice that does the following:
A character jumps to reach an object that is above their head.
A while loop will continue until they reach the object or they have made 10 attempts.
Each attempt the character jumps a random amount, from half the distance to the object, up to and including the distance to the object.
The character counts each jump.
If the character succeeds, the object falls to the ground.
Use a procedure to tell them they succeeded, or better luck next time.
Use procedures and functions where appropriate:
Specifications:
- Use props to fill out the scene.
- Use variables wherever it is appropriate.
- Use repetition and selection control statements.
- Use procedures and functions where appropriate.
Suggestions: This is a longer program than previous ones.
- Get one piece at a time to work, then save.
- Keep working on it one piece at a time.
- If you are having problems with one piece, disable those statements and come back to it.
Save the Alice3 program as LastName_FirstName_jumping.a3p. For example Smith_Mary_jumping.a3p
- Submit the LastName_FirstName_jumping.a3p file in assignments.
The following are requirements:
If any of these requirements are not met, the score will be 0.
If the requirements are met, the grade is as follows:
Possible points=49
If you do not receive a perfect score you may resubmit it as long as it is resubmitted within 3 days.
Assignment IndexThis web site, and all pages therein, are the sole property and responsibility of Zebra0.com.
It is not endorsed, sponsored, or provided by or on behalf of Montgomery College.