Question: ComputeAverage Write a class called ComputeAverage This program uses a starter. In the starter code the program prompts the user for three numbers and it

ComputeAverage Write a class called ComputeAverage This program uses a starter. In the starter code the program prompts the user for three numbers and it assigns the numbers to three variables: var1, var2, and var3. You should not modify this code. This part is provided in the starter code. Do not touch it. In the part of the program where you will insert your code, you must use the three variables and compute the average of the three numbers. your code is responsible ONLY for computing the average and printing "The average is: ..."

Examples % java ComputeAverage Please enter first double: 1 Please enter second double: 5 Please enter third double: 9.0 The numbers you entered are : 1.0, 5.0, and 9.0 The average is: 5.00 % java ComputeAverage Please enter first double: 1.0 Please enter second double: 5.0 Please enter third double: 7.0 The numbers you entered are : 1.0, 5.0, and 7.0 The average is: 4.33 %

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!