Calculating the Minimum, Maximum and Average Grade of a Class

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

Follow Me

If you like our content, feel free to follow me to stay updated.

Subscribe

Enter your email address:

We hate spam as much as you do.

Upload Material

Got an exam, project, tutorial video, exercise, solutions, unsolved problem, question, solution manual? We are open to any coding material. Why not upload?

Upload

Copyright © 2012 - 2014 Java Problems  --  About  --  Attribution  --  Privacy Policy  --  Terms of Use  --  Contact