Question: Average GradeGiven an Array grades, find the maximum, the minimum, and the average.Use the text formatter with System.out.printf ( ) to print out each result
Average GradeGiven an Array grades, find the maximum, the minimum, and the average.Use the text formatter with System.out.printf to print out each result on its own line.
Use: fn to print each result
Label the results: "Max Grade: "Min Grade: and "Average Grade:
System.out.printfMax Grade: fn result;
import java.io;
import java.util.;
public class GradeMaxAndMin
public static void mainString args
Scanner in new ScannerSystemin;
int numOfInputs innextInt;
double grades new doublenumOfInputs;
for int index ; index numOfInputs; index
gradesindex innextDouble;
inclose;
DO NOT CHANGE THE CODE ABOVE THIS LINE
WRITE YOUR CODE HERE
end of main
STDOUT
Expected STDOUT
MaxGrade:
MinGrade:
AverageGrade:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
