Programming Assignments

 Chapter 2 Test: Thursday 10/5

Unit II: Extending Robots to provide More Functionality

Phase I: These programs are worth 40 points

Title

Description

Due Date

BetterRobot

Define a new type of Robot: BetterRobot.  BetterRobot should have the following methods:  turnRight and moveBackwards (move one step backwards and end facing the same direction as before the method call.)

Tuesday 9/26

Letter Writer

Create a new type of robot - LetterWriter.  The LetterWriter robot should write out your initials in beepers.  Each letter should be produced by a different method of the new robot.

Wednesday 9/27

Harvest Diamond

Create a new type of robot - Harvester.  The harvester robot needs to use the diamond.kwld file in the task as its world.  Its job is to pick up the beepers efficiently.  (Hint: Harvester would work well with a harvestOneDiagnol method)

Friday 9/29

Carpet Installer

Create a new type of robot - Carpet Layer.  The carpet Layer robot needs to work off the room.kwld file.  It should fill the inner rectangle with beepers like a "carpet"

Tuesday 10/3

Car Builder

Create a new type of robot - CarBuilder.  The car builder robot needs to draw a car out of beepers in a world.  When your task runs you should create 4 car building robots and have each one complete a different piece (body, wheels, frontend and rear)

Thursday 10/5

 

Phase II: These parts are worth 10 points each

 

Title

Description

Better Robot

Create one additional method for BetterRobot that would be useful in the robot world

Letter Writer

Have the robot write your initials twice (one above the other) in the world.

Harvest Diamond

Create a new world and task file to have your harvester pick up a different shape of beepers.