@@ -0,0 +1,886 @@
+/*%0A * File: CollectNewspaperKarel.java%0A * --------------------------------%0A * At present, the CollectNewspaperKarel subclass does nothing.%0A * Your job in the assignment is to add the necessary code to%0A * instruct Karel to walk to the door of its house, pick up the%0A * newspaper (represented by a beeper, of course), and then return%0A * to its initial position in the upper left corner of the house.%0A */%0A%0Aimport stanford.karel.*;%0A%0Apublic class CollectNewspaperKarel extends SuperKarel %7B%0A%0A%09// You fill in this part%0A%09public void run () %7B%0A%09%09MoveToNewsPaper ();%0A%09%09PickUp ();%0A%09%09Return();%0A%09%7D%0A%0A%09private void MoveToNewsPaper () %7B%0A%09%09move ();%0A%09%09move ();%0A%09%09turnRight ();%0A%09%09move ();%0A%09%09turnLeft ();%0A%09%09move ();%0A%09%7D%0A%09%0A%09private void PickUp ()%7B%0A%09%09pickBeeper ();%0A%09%09turnAround ();%0A%09%7D%0A%09%0A%09private void Return () %7B%0A%09%09for (int i = 0; i %3C 3; i++) %7B%0A%09%09%09move ();%0A%09%09%7D%0A%09%09turnRight ();%0A%09%09move ();%0A%09%09turnRight ();%0A%09%7D%0A%7D%0A

Create CollectNewspaperKarel.java