Grade point average (GPA) is used to measure students performance based on subject achievement. The following input
Question:
Grade point average (GPA) is used to measure students’ performance based on subject achievement. The following input and output interface are the example of GPA calculator.
The steps and formula for the calculations are as follows:
- Calculate Grade Point (GP) for each subject.
GP is calculated based on the point value of the grade obtained multiplied by the credit hour of the respective subject.
The following table is the point value for each grade.
Grade | Point Value |
A | 4 |
B | 3 |
C | 2 |
D | 1 |
F | 0 |
Note: Credit hour is determined from the last digit of the course code. For credit hour for course BKAS3143 is 3 hours.
For example, if a student gets an A for subject BKAS3143, GP = Point Value x Credit Hour = 4 x 3 = 12 (i.e. point value A = 4 whereas the credit hour is 3).
- Calculate Total Credit Hours (TCH) for the semester.
Total-up the credit hours for all subjects taken for the semester.
- Total Grade Point (TGP) of all subjects for the semester.
Total up the GP of all subjects. For example, if a student takes five subjects, the TGP = GP1 + GP2+ GP3+ GP4+ GP5.
- Compute the GPA.
The formula is GPA = TGP / TCH.
REQUIRED:
- Assuming that students register for only five (5) courses, write PHP codes for the program.
- Determine student level of achievement based on the following condition:
- GPA >=3.67 è First Class
- >=3 GPA <3.67 è Second Class Upper
- GPA <3 è Second Class Lower
Elementary Statistics A step by step approach
ISBN: 978-0073386102
8th edition
Authors: Allan Bluman