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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!