Your TA was helping you with a problem a suggested the following lines of code for controlling a Jeroo
. However, the TA accidentally used...
Search Results
Searching for: Jeroo
Individual Exercises
The following method could be added to a Jeroo
subclass to provide an action to turn around by turning left twice. Change the method so...
You wrote the following statements when first learning about Jeroo
methods--they move the Jeroo
forward 3 steps. Now that you've found...
The following declaration introduces a variable named jessica
that refers to a Jeroo
, and also creates a new instance of the Jeroo
class...
The following myProgram()
method creates a Jeroo
and adds it to the island at (1, 1). Change the code so the Jeroo
begins facing north at...
The following statements move a Jeroo
forward two steps. Insert new method calls between the two statements to turn left twice, so that...
You are writing a declaration for a new class called King
that represents a chess piece, and it has already been started for you below....
You are writing a subclass of Jeroo
called RichJeroo
and the constructor appears below. Modify the constructor so the Jeroo starts out...
You are writing a subclass of Jeroo
called SunnyJeroo
and the constructor appears below. Modify the constructor so the Jeroo starts out...
You are writing a subclass of Jeroo
called NorthernJeroo
and the constructor appears below. Modify the constructor by removing the ...
You are writing a subclass of Jeroo
called StockedJeroo
and the constructor appears below. Modify the constructor by removing the flowers...
You are writing a subclass of Jeroo
called BonusJeroo
and the constructor appears below. Modify the constructor so that the Jeroo begins...
You are writing a subclass of Jeroo
called PurpleJeroo
and the constructor appears below. However, this constructor has some syntax...
Write a method called plantThree()
that can be added to a Jeroo
subclass. The method should plant a flower and hop, and repeat that...
Write a method called turnAroundLeft()
that can be added to a Jeroo
subclass. The method should turn to the left, hop forward, and turn...
You will write a method called plantThreeRowsOfThree()
that can be added to a Jeroo
subclass. The method should plant three rows of three...
Add a new else if statement to the conditional below. if the jeroo named charles
sees a net ahead if it, it should run the toss method.
For this question, you have access to a Jeroo named amy
. Add in an else statement to the following cascaded if that will set the int...
For this question you can assume you have access to two jeroo variables. One named tom
and one named jerry
.
Change the if statement so...
For this question you can assume you have access to two jeroo variables. One named tom
and one named jerry
.
Change the if statement so...
For this question you can assume you have access to three jeroo variables. One named tom
, one named steve
, and one named jerry
.
Change if...
For this question you writing code for named erin
. Change the if statement to a while loop so that erin
will continue turning until erin
...
For this question you can assume you have access to three jeroo variables. One named tom
, one named steve
, and one named jerry
.
Add in...
For this question you can assume you have access to one jeroo variable named lakin
. Add in the conditional for the following while loop....
For this question you can assume you have access to one jeroo variable named rose
. Add in the conditional for the following while loop....