15-100: Introductory/IntermediateProgramming                                            Spring 2003
Exercise                                                                         Due:   

Relevant Reading:
    Chapters 1 and 2 of the Karel J. Robot text.
    Rich Pattis' on-line reference for using the software.
Next Reading:
    Chapter 3 of the Karel J. Robot text - we'll be doing this material on Friday, so read ahead.



START EARLY!   Banging your head against the wall late Thursday night (after I have gone home) will not be productive.

Assignment:

Get the hw1.zip file.  Use the files in this folder as your basis for this assignment.   Consider the world "line.txt", in which there is a vertical line of 5 beepers.  Your task is to complete the program so that the robot rotates the line of beepers around the middle beeper so that the line is horizontal.   More specifically, there are beepers on avenue 5, streets 4 through 8.   At the end, there should be beepers on street 6, avenues 3 through 7.

Picture of initial situation Picture of final situation
                              Initial Situation                                                            Final Situation

When the robot is done, it should return to where it started and turn itself off.

Additional requirements:



Handin:
Rename the folder containing all of the files to be "lastname-firstname-100SectionLetter-moveline".    For example, if I am in section Z, I would rename my folder to be:  "McElfresh-Scott-100Z-moveline"  (without the quotes).  Your lastname and firstname do not need to be complete and precise - shortened versions are okay.   Warning:  Going between andrew, the mac, and windows, spaces can be a problem in filenames.  You may wish to avoid them, and scrunch together multiple words.

Create a zip file of this folder, with the same name as the folder (except with the .zip ending this time).  Submit this file via the electronic handin.   If you have problems, please contact one of us for help.