Zebra0.com

Jumping: Using random numbers

Jumping: Using random numbers

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:

Suggestions: This is a longer program than previous ones.

Save the Alice3 program as LastName_FirstName_jumping.a3p. For example Smith_Mary_jumping.a3p

The following are requirements:

If any of these requirements are not met, the score will be 0.

Item

If the requirements are met, the grade is as follows:

ItemPoints
3
3
3
6
6
6
4
6
6
6
Possible points=49

C

If you do not receive a perfect score you may resubmit it as long as it is resubmitted within 3 days.
Assignment Index

This 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.