Top Topics in our Forum';
Interactive Parabola Grapher
Explore graph ,equation and the locus of a Parabola
Save graphs to your desktop!

A+    A−    B  
Algebra
Games
Geometry
Interactive
Trigonometry
Forum




AddThis Social Bookmark Button

Jeroo Activities

Hurdle Activities

Jeroo Island Activity


Before you try either of these projects, make sure that you've wateched the youtube video below.

Scavenger Hunt
Acknowledgement This problem has been adapted from the Super-Duper Steeplechase problem (exercise 10 at the end of chapter 5) in �Karel the Robot, 2nd edition� by Richard Pattis, Jim Roberts, and Mark Stehlik.
    Objective: A Jeroo starts at the southwest corner of the island, location (23,0), facing East with no flowers. There is a flower somewhere east of the Jeroo. There are zero or more hurdles, represented by nets, between the Jeroo and the flower. Each hurdle is a rectangular arrangement of nets with its base along the Southern Sea. The height and width of each hurdle is unknown. The number of hurdles and the spacing between the hurdles is unknown. There is at least one row of empty cells along the top and sides of each hurdle. There are no water features and no other Jeroos on the island. The only nets are those that define the hurdles. The goal of this program is to have the Jeroo jump all of the nets, pick the flower, and stop. A representative island is shown in figure 1.
  • Note: To fulfil this asignment you must make use of the while() construct. Below is an example of how you can use the "!" operator (remember "!" means 'not') and while to make a Jeroo called j continue to hop while there is no net ahead.
    method main (){
    Jeroo j = new Jeroo();
    	while(!j.isNet(AHEAD) ){
    	j.hop();
    	}
    
    }		
    The code below would make JJ continue to hop so long as no water is ahead.
    method main (){
    Jeroo jj = new Jeroo();
    	while(!jj.isWater(AHEAD) ){
    	j.hop();
    	}
    
    }		
  • Download all the island files