Section 9.4 Write-Methods-WE2-P1
Subgoals for Writing Methods.
Subsection 9.4.1
GIVEN
For questions 23 through 27, fill in the blanks of the following code, which is a public method header that would work for this call:
String fob;
fob = obj.journey(4.1, 6.6, 8);
_______ _______ journey (_______ one, _______ two, _______ three)
A B C D E
{
/* logic */
}
Exercises Exercises
2.
3.
4.
5.
GIVEN
For questions 33 through 37, fill in the blanks of the following code, which is a private method header that would work for this call:
robertsDay(5, 7, 22);
_______ _______ robertsDay (_______ one, _______ two, _______ three)
A B C D E
{
/* logic */
}
6.
7.
8.
9.
10.
You have attempted 1 of 3 activities on this page.