<%@LANGUAGE="VBSCRIPT" %> <% Response.CacheControl = "no-cache" %>
Lab 03 (Due by 11:59pm on September 01, 2010)

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 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 at a table outside the front of Hot Box Pizza (State Street side). 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:

  1. Leave B019
  2. Turn right
  3. Turn right at corner
  4. Walk straight ahead
  5. When at water faucet, turn left
  6. Bow forward
  7. Drink water
  8. Straighten up
  9. Wipe mouth with back of hand
  10. Test satisfaction
    • Yes? Belch
    • No? Return program to Step 6
  11. etc....

Turn-in Procedure

  • You can create the file in Word or as a text file.
  • Name the file (substituting your name): Whittinghill_David_Lab03.txt

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!