Wednesday, September 12, 2007

Karel The Robot - Assignment Due Dates

Due Friday, 9/14/2007
Assignment #1: Write a program to move Karel, who is facing West, from 14th Avenue and 0th Street to 0th Avenue and 0th Street.

Assignment #2: Write a program to move Karel, who is facing South, from 14th Avenue and 0th Street to 0th Avenue and 0th Street.

Assignment #3: Write a program to move Karel from 14th Avenue and 0th Street to 0th Avenue and 0th Street. Karel may start by facing any direction Hints: You will need to use the conditions that check which way Karel is facing and the if/else command.

Assignment #4: Write a program to move Karel, who is facing West, from 14th Avenue and 0th Street to 0th Avenue and 0th Street picking up all the beepers on 0 Street.



Due Thursday, 9/20/2007
Assignment #5: Write a program to move Karel, who is facing West, from 14th Avenue and 0th Street to 0th Avenue and 0th Street. Karel must move around obstacles.

Assignment #6:
Rewrite assignment #4 creating a subroutine using the define command. The new command you create should be named pickAnyBeeper and should be able to pick up more than one beeper at a location.



Due Tuesday, 9/25/2007
Assignment #7: Write a program to move Karel, who is facing West, from 14th Avenue and 0th Street to 0th Avenue and 0th Street picking up all the beepers on 0 Street and putting them all down when reaching 0th Avenue and 0th Street.

Assignment #8: Write a program to move Karel, who is facing West, from 14th Avenue and 0th Street to 0th Avenue and 0th Street. Karel must move around obstacles. This is similar to Assignment #5. However, the difference is that the obstacles could be changed to different sizes. In other words, if I give you 1 or 2 other Karel worlds with slightly different obstacle courses, your program should work.

0 Comments:

Post a Comment

<< Home