Question: (JAVA) Write a program that accepts user input for five values of type double, and prints their average. You do not need to declare five
(JAVA) Write a program that accepts user input for five values of type double, and prints their average. You do not need to declare five different variables, think of how you can get away with a single variable. Do not use any while or for loops. The second part of your program will be to figure out whether the average of these 5 numbers results in grade 100>A>=90, 90>=B>=80, 80>C>=70, 70>D>=60 or F<60, you are required to use a switch-case statement with cases for each grade.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
