Reference no: EM132497803
TMA Project
In credit hours system universities, like Arab Open University, grade point average (GPA) is overall grade point average. For each course, there are certain credits which are usually based on how many hours the class is held in each week. Student's GPA is calculated by dividing the total amount of grade points earned by the total amount of credit hours attempted. Student's GPA ranges from 0.0 to a 4.0. To get the example student's GPA, the total grade points are divided by the total credit hours attempted. Here is the simple formula to calculate the GPA:
GPA = ∑course grade points x course credit hours/∑course credit hours
The course grade point depends on the course gained mark as follows:
Gained mark range
|
Course point
|
≥ 90
|
4.0
|
82 - 89
|
3.5
|
74 - 81
|
3.0
|
66 - 73
|
2.5
|
58 - 65
|
2.0
|
50 - 57
|
1.5
|
< 50
|
0
|
Write a Java program that calculates the GPAs of a class of students that works as follows:
1. Read the number of students in a class (minimum 10 students.)
2. For each student, read the student's name and number of courses the students
registers.
3. For each course, it read marks of the course and the number of credit hours of the course.
4. Then it computes the grad for each course as defined in the above cases.
5. Computes and prints (rounded to 2 decimal places) the GPA of the student, as presented in the above equation.
6. Finally, it should print the name and the GPA of the student who got the heist GPA.
Give the exact output of your application (input values are in red). Provide a snapshot in the word file representing the exact output of any values from your choice.
Attachment:- TMA Project.rar