3.00 Question Set

  • Due Oct 20, 2014 at 10:59pm
  • Points 6
  • Questions 6
  • Time Limit None
  • Allowed Attempts Unlimited

Instructions

Read Sections 4.1 and 4.2 (pages 244 - 254) of the textbook.

Next, review the Recursive Definitions, Algorithms, and Programs presentation.

Then, answer the following questions taken from the reading.

Finally, download, extract, and save the SmartBot project to your network or flash drive. Review all of the methods that are provided in the SmartBot class, run the main method in the SmartBotDriver class and observe the behavior of the robots.

Rewrite the pickAll, move(int), findBeeper, and CountPile methods in the SmartBot class using recursion (instead of iteration), so that the robots have the same behavior as before.

For those unfamiliar with Karel J Robot, you may wish to review the following document.

 

Only registered, enrolled users can take graded quizzes