Solved

Parameter Mystery At the Bottom of the Page, Write the Output Produced

Question 3

Essay

Parameter Mystery
At the bottom of the page, write the output produced by the following program, as it would appear on the console.
(Though the program uses words related to arithmetic, the output does not necessarily follow the rules of addition.)
public class ParameterMystery {
public static void main(String[] args) {
int one = 4;
int two = 3;
int three = 10;
int num = 17;
int four = 3;
racket(one, two, three);
racket(three, four, 5);
racket(2, two * 2, num);
racket(num, three * one, four);
racket(three - four, one, two);
}
public static void racket(int two, int one, int three) {
System.out.println(three + " is roughly " + two + " plus " + one);
}
}

Correct Answer:

verifed

Verified

Related Questions