Your TA was helping you with a problem a suggested the following lines of code for controlling a Jeroo
. However, the TA accidentally used...
Syntax Practice 2a: Jeroo Methods
Score: 0 / 6.0
Exercises
0
/ 1.0
0
/ 1.0
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...
0
/ 1.0
You wrote the following statements when first learning about Jeroo
methods--they move the Jeroo
forward 3 steps. Now that you've found...
0
/ 1.0
The following declaration introduces a variable named jessica
that refers to a Jeroo
, and also creates a new instance of the Jeroo
class...
0
/ 1.0
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...
0
/ 1.0
The following statements move a Jeroo
forward two steps. Insert new method calls between the two statements to turn left twice, so that...