You are on page 1of 2

Stella Connaughton

Chapter 2 Questions
2.1
The methods used were the ready ok method, which performs the preparation
move for the cheerleader, and the right jump, which is used twice, and causes the
cheerleader to bend her knees, jump in the air with her right arm and leg raised,
and return to the ground.
2.2
It allows for the code to be more organized, and easier to manage, modify and
extend behaviors of the object.
2.3
It allows for the user to give various distances to the jump, allowing for the method
to be more flexible.
2.4
car move forward (total *3)
2.5
length set value to (height/4)
2.6
side set value to random number minimum=10 maximum=50 integerOnly=true
2.7
count set value to (count+1)
2.8
It allows for the program to carry out and execute the program more specifically and
versatile.
2.9
You can add one parameter to as many as you want for the method.
2.10
A parameter provides key information to carry out the methods purpose. A variable
represents a number in the method. Both make the method more specific, however,
parameters are just the conditions set, while the local variable is what you put in
the parameter to make it specific.

Stella Connaughton

You might also like