Problem:
Write a program that would read the class grades from the user(5 grades). Then the code will display the maximum grade, minimum grade, and average of the. Then compute the average letter grade using the conditional statement(if else) and print the class average.
Please enter the grades:85
98
72
64
53
Then, your program should print:
Maximum: 98
Minimum: 53
Average: 74.4
The Class Average is: C+
Solution:
/** * @(#)Problem2.java * * * @author * @version 1.00 2012/10/16 */ public class Problem2 { public Problem2() { We don't have a solution yet! If you were able to solve it, feel free to send it to our website. } }
No comments :
Post a Comment