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
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
- GPA
INPUT Code BKAF3123 Code BKAM3223 Code BKAMS213 Code ATNN 1012 Code BKAS3143 Grade A Grade B Circle Grade D Grade F Submit OUTPUT Total Credit Hours: 14 Total Grade Point: 29 Grade Point Average (GPA): 2.07 Actievement: Second Cluss Lower
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started