CSCE 145 -- Spring 2008

Sections 4, 5, 6

Introduction to Algorithmic Design

Homework Assignment 1


Due: in the CSE dropbox by 5pm Eastern time Monday 28 January 2008. Remember to upload the Java file and not the class file.

Create a Java program named MoveThingIntoHouse.java that has a robot pick up a Thing outside a "house" and move the Thing into the house.

The initial configuration (which you will have to create by creating walls, a robot, and a Thing, should look like this.

The final configuration that is produced by your program should look like this.

Note that your program should produce EXACTLY these before and after figures.

You will be required to fill in the author and description of the program in a comment block at the top of your program, and the source code must be indented properly and contain comments that describe important parts of the algorithm. The use of proper indentation is considered good programming style, and you are expected to use good programming style. You will lose points if you do not follow good programming style, which includes not only what was just mentioned, but also the use of well-named variables that follow the conventions outlined in class.

Swearingen Engineering Center | Columbia, SC 29208 | 803.777.2880 | web@cse.sc.edu