![](images/collegeKids.png)
Sample Programs
To restore a program and world below, click on the appropriate links below and copy the text( Windows - ctrl A followed by ctrl C to copy. MAC - cmd A followed by cmd C to copy. ) . Paste the text according to the steps in Restoring Worlds tutorial.
Pick Up Newpaper
![](images/prob_01_img.png)
Task: Karel lies in bed. He needs to go outside and retrieve the newspaper. Then he should come back inside and get in bed facing the same direction.
Pick Up Newpaper - Simplified
![](images/prob_01_img.png)
Task: The task is the same as for the prior sample program. The difference is this task defines new instructions to simplify the program.
Pick Up Beeper Rectangle
![](images/beeperRectangle.png)
Task: Pick up an rectangular array of beepers with any number of rows and columns. Karel is on the southwest corner of the beeper rectangle facing north.
Move Through the Tunnel
![](images/tunnelImgh.png)
Task: Move Karel through the tunnel and exit the other end. As soon as Karel exits, he should shut down.
Climb the Stairs
![](images/stepPreCond.png)
Task: Karel climbs the stairs until he reaches the top. A new instruction is defined to help simplify the task.
Bowling Pins Problem - Simplicity
![](images/bowlingPins.png)
Task: Karel sets up the bowling pins in an alley. This program takes a simple top down approach. However it is not the most efficient
Bowling Pins Problem - Efficiency
![](images/bowlingPins.png)
Task: Karel sets up the bowling pins in an alley. This program takes an efficient top down approach. It takes almost 20% less time than the previous Bowling Pins example. However, the code is slightly more complicated.