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.

Grade point average (GPA) is used to measure students performance based on

subject achievement. The following input and output interface are the example of

The steps and formula for the calculations are as follows:

  1. 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).

  1. Calculate Total Credit Hours (TCH) for the semester.

Total-up the credit hours for all subjects taken for the semester.

  1. 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.

  1. Compute the GPA.

The formula is GPA = TGP / TCH.

REQUIRED:

  1. Assuming that students register for only five (5) courses, write PHP codes for the program.
  2. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!