Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Consider the following Questions. public static int test(int x, char ch, double

ID: 3608796 • Letter: C

Question

Consider the following Questions.
public static int test(int x, char ch, double d, int y) public static double two(double dl, double d2) public static char three(int x, int y, char ch, doubled)
Answer the following Questions.
a. How many parameters does themethod test have? What is thetype of the method test? b. How many parameters does the method twohave? What is the type of the method two? c. How many parameters does themethod three have? What is the type ofthe method three? d. How many actual parameters are needed to call the methodtest? What is the type of each parameter, and inwhat order should you use these parameters in a call to the methodtest? e. Write a Java statement that prints the value returned bythe method test with the actual parameters 5, 5,7.3, and 'z'. f. Write a Java statement that prints the value returned bymethod two with the actual parameters 17.5and 18.3, respectively. g. Write a Java statement that prints the next characterreturned by the method three. (use your own actualparameters.)

Consider the following Questions.
public static double two(double dl, double d2) public static char three(int x, int y, char ch, doubled)
Answer the following Questions.
a. How many parameters does themethod test have? What is thetype of the method test? b. How many parameters does the method twohave? What is the type of the method two? c. How many parameters does themethod three have? What is the type ofthe method three? d. How many actual parameters are needed to call the methodtest? What is the type of each parameter, and inwhat order should you use these parameters in a call to the methodtest? e. Write a Java statement that prints the value returned bythe method test with the actual parameters 5, 5,7.3, and 'z'. f. Write a Java statement that prints the value returned bymethod two with the actual parameters 17.5and 18.3, respectively. g. Write a Java statement that prints the next characterreturned by the method three. (use your own actualparameters.)

Explanation / Answer

public static double two(double dl, double d2) public static char three(int x, int y, char ch, doubled)
Answer the following Questions.
a. How many parameters does themethodtest have? What is the type of themethodtest?        4, type integer (int)
b. How many parameters does the method twohave? What is the type of the methodtwo?         2, type double
c. How many parameters does themethod three have? What is the type ofthe method three?   4, type character (char)
d. How many actual parameters are needed to call the methodtest? What is the type of each parameter, and inwhat order should you use these parameters in a call to the methodtest?    4 parameters, the first is typeinteger, 2nd type character, 3rd type double, 4th typeinteger. they should be in exactly that order int, char,double, int
e. Write a Java statement that prints the value returned bythe method test with the actual parameters 17.5and 18.3,respectively.             Since test has 4 parameters and only 1 of them is double, I'massuming this question should be
e. Write a Java statement that prints the value returned by themethod two with the actual parameters 17.5 and 18.3,
                    then it would be    System.out.println(two(17.5,18.3));
g. Write a Java statement that prints the next character returnedby the method three. (use your own actualparameters.) e. Write a Java statement that prints the value returned bythe method test with the actual parameters 17.5and 18.3,respectively.             Since test has 4 parameters and only 1 of them is double, I'massuming this question should be
e. Write a Java statement that prints the value returned by themethod two with the actual parameters 17.5 and 18.3,
                    then it would be    System.out.println(two(17.5,18.3));
e. Write a Java statement that prints the value returned bythe method test with the actual parameters 5, 5,7.3, and 'z'.
                 System.out.println(test(5,'z',7.3,5));

f. Write a Java statement that prints the value returned bymethod two with the actual parameters 17.5and 18.3, respectively.        fis the answer for e above
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote