Jeroos Unit Project

Choose one of these - DO NOT DO ALL of THEM - you will get only one grade. Read all descriptions before you start.

This is NOT a LAB grade. It is a program grade. Do not call me to grade until you are finished.
I will not help you and I will grade it only once.

 

First Choice - Farmer Bob
this can be for 95 or 100 points

1. Open Farmer1.jsc and farmer1.jev

2. Save both code and Island as Farmer2

3. Change the Island as you see here and save it.
This season, the cotton mutated and some plants are taller than other plants.

 

4. If you made a different version of reap, you may need to make slightly different steps.
All changes will be in the reap() method. You will need 2 while loops in the method to replace the trip up the plant ( it was 6 hops) and the trip down the plant ( also 6 hops).
It changes each time so Jeroo has to loop to his left (or right) before he hops.

Think about which boolean to use.

If you stop here - your grade is 95.

If you have time to continue, please save as new island as farmer3.
Do the same with your program before you start making changes

Change the island to this - spacing between the plants changes.

 

some hints to do this.

1. You need a while loop in the main method. I used
             while(!farmerbob.isWater(RIGHT))

2. I recommend creating a method for the moving between the plants because you will need a while loop in it also but there can be a while loop inside a while loop in the main method.

3. good luck - call me to grade - 100 points

 

Second choice
Spirals for 80 points
or Mazes for 100 points

Spirals - 80 points

Create a spiral something like this. It can go the other way if you want to. Let bob run through it until he gets to the flower. Start bob in a corner on the outside of the spiral, you must have one while loop and some if's or if..else's. You do not have to use methods. There is no template to start this one - use an old appropriate program.

 

Mazes - 100 points

You will not create these mazes - you will find them in the teacher folder. Open them up and save them in your Jeroo folder. The same program will work on both.

 

You must use this Constructor for bob

Jeroo bob = new Jeroo(2,2, NORTH);

It is not as difficult as it looks - Open Runner (or WaterBob2) as a template and save as Mazes.

Call me to grade- it wil be checked on both mazes for 100 points