Question: Write a program called GradeBookMethod.java. This program should do the following: 1. Prompt the user to enter 3 grades (assume the grades are integer numbers)
Write a program called GradeBookMethod.java. This program should do the following: 1. Prompt the user to enter 3 grades (assume the grades are integer numbers) 2. Compute the average of the 3 grades by calling a method, which you write, named: averagel) 3. Print the resulting average (do not worry about rounding the result, just print the value with all of the decimal places) The average () method will 1. Take 3 integer values as the input parameters 2. Calculate the average of the three integers (what type of data should the average be?) 3. Return the average. Hede is an example of what the program output will look like (italics indicate user input; Grade 1: 89 Grade 2: 93 Grade 3: 72 84.666666667
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
