Overview
The goal of this lab is to get comfortable converting a task into a series of plain-English sequential commands. The student is expected to examine the following scenario and convert the given task into a set of clear, brief instructions (these are known collectively as "pseudocode"). Represent conditional situations using indentation as was demonstrated during lecture. Write a pseudocode program in either a text file or a Word document.
Scenario
Someone has replaced your roommate's brain with a shiny new Core i7 processor. Bad news for him, but good news for you as he must now must execute whatever commands you issue. There's one catch. Each command must be very short and can only consist of one simple task. For example, "walk 20 ft forward" is acceptable. "Go get me my bookbag" is unacceptable.
The situation. You and your roommate are sitting on a table in front of Hot Box Pizza. Give him a dollar and have him get you a soda (with ice) from Discount Den and bring it back to you.
Some conditions:
- Your roommate should have to make no inferences about his environment. Every instruction should be spelled out for him.
- Your roommate can still recognize written English.
- Your roommate can recognize spoken English.
- Your roommate recognize objects (doors, stairs, elevators, vending machines, specific people)
Example pseudocode telling walk around the basement of KNOY and get a drink of water:
- Leave B019
- Turn right
- Turn right at corner
- Walk straight ahead
- When at water faucet, turn left
- Bow forward
- Drink water
- Straighten up
- Wipe mouth with back of hand
- Test satisfaction
- Yes? Belch
- No? Return program to Step 6
- etc....
Grading
You will be graded based on the clarity, understandability, and brevity of your commands as well as the completeness of the overall program. Have fun!
|