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

if a method does not return a value what return type should you use? Select one:

ID: 3559824 • Letter: I

Question

if a method does not return a value what return type should you use? Select one: none int void public the method name and parameter list are the elect one a method header parameters return type signature what is the return type of the get grade method? public class test { public static void main( straight args){ system.out.print("the grade is "+getgrade(78.5));system.out.print.print(" the grade is "+getgrade(59.5));}public sttic getgrade(double score){if (score.=90.0) return "a". eles if(score>=80.0) return"b", eles if (score>=70.0)

Explanation / Answer

1. c

in void type you need not to have any return statement

2. d

A method signature is part of the method declaration. It is the combination of the method name and the parameter list.

3. b

since Println() method require a string for concatination so the method getGrade() must return a string