AP Computer Science
This lab explores repetition structures. Namely, for-loops and while-loops. Note, you must comment your code.
Source Files: Please download the following gitHub repository (should have a working debugger)
https://github.com/danielappel/KarelLab4
Implement your solution for the Beeper Steeple problem (shown below)
Instruct a robot to escape from a rectangular room with exactly one exit. Once the robot leaves the room it should turn off. Note, your solution should work for any rectangular room, not just the one shown below
Program a robot to place beepers along each wall. You may assume that the robot starts with enough beepers. The robot should “know” when to stop as it has reached the first beeper that it placed.
Karel is inside a room that has a number of open windows. There are no windows in the corners of the room. Kare is next to the northern wall facing east. Program karel to close the windows by putting one beeper in front of each window. You may assume that karel has enough beepers to complete the task.