Difference between revisions of "GvR Steps 1-7 Quiz"
From WLCS
Line 1: | Line 1: | ||
− | |||
== Directions == | == Directions == | ||
The quiz is open-book, open-computer, and CLOSED-PERSON. You have 30 minutes to complete the quiz. | The quiz is open-book, open-computer, and CLOSED-PERSON. You have 30 minutes to complete the quiz. | ||
Once you are done, please demo to Mr. Bui for credit. | Once you are done, please demo to Mr. Bui for credit. | ||
− | + | # Define the compound instruction '''turnright''' so that Guido can turn right using left turns | |
− | + | # Define a new compound instruction called '''spin''' that makes Guido do a full 360 degree spin | |
− | + | # Define a new compound instruction called '''placesomebeepers''' that does the following: | |
− | + | ## place a beeper and move | |
− | + | ## place another beeper and move | |
− | + | ## place a beeper and turn to the left | |
− | + | ## move forward once | |
− | + | ## place a beeper and move | |
− | + | ## place another beeper and turn to the right using your turnright instruction | |
− | + | ## move forward once | |
− | + | # After defining the above compound instructions, have Guido do the following | |
− | + | ## start Guido facing east | |
− | + | ## move Guido two spaces forward | |
− | + | ## placesomebeepers | |
− | + | ## spin | |
− | + | ## placesomebeepers | |
− | + | ## turn off Guido | |
== Grading == | == Grading == | ||
Line 26: | Line 25: | ||
2 pts - spin | 2 pts - spin | ||
2 pts - placesomebeepers | 2 pts - placesomebeepers | ||
− | 4 pts - program using | + | 4 pts - completed program using your newly defined instructions |
− | |||
− |
Revision as of 08:01, 25 September 2008
Directions
The quiz is open-book, open-computer, and CLOSED-PERSON. You have 30 minutes to complete the quiz. Once you are done, please demo to Mr. Bui for credit.
- Define the compound instruction turnright so that Guido can turn right using left turns
- Define a new compound instruction called spin that makes Guido do a full 360 degree spin
- Define a new compound instruction called placesomebeepers that does the following:
- place a beeper and move
- place another beeper and move
- place a beeper and turn to the left
- move forward once
- place a beeper and move
- place another beeper and turn to the right using your turnright instruction
- move forward once
- After defining the above compound instructions, have Guido do the following
- start Guido facing east
- move Guido two spaces forward
- placesomebeepers
- spin
- placesomebeepers
- turn off Guido
Grading
2 pts - turnright 2 pts - spin 2 pts - placesomebeepers 4 pts - completed program using your newly defined instructions