Question: A program contains the following method definition: public static double calculateGrade(double quiz, double midterm, double final){ return 0.2*quiz + 0.3*midterm + 0.5*final; } Write a
A program contains the following method definition:
public static double calculateGrade(double quiz, double midterm, double final){
return 0.2*quiz + 0.3*midterm + 0.5*final;
}
Write a statement that passes the values 81.5,77.0 and 67.5 to this method as arguments and assigns its return value to a variable called finalGrade.
Remember to declare the variable finalGrade.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
