You are on page 1of 3

CMPE110 Assignment 1

You will asked to prepare a C++ program which will compute and
display Resultant Grade and Letter Grade for each course of a
student upon getting the corresponding lab, midterm and final
marks as an input. Your program will also display the student
GPA as being specified in the example below.

Input information consists of following fields:


Number of courses taken by student,
lab, midterm and final grades and course credit.

Upon getting specified information for each course your program


should compute and display Resulant Grade and Letter Grade of
involved course. Lab, Midterm, and Final weights are shown
below:
 Lab grade ( %15)
 Midterm exam grade ( %35)
 Final exam grade ( %50)

Finally GPA will also be displayed.


Please examine following example carefully. Your program will
run in the same manner.

Enter number of courses: 3

Enter lab, midterm final grades t and credit of course 1


100 85 75 3

Enter lab, midterm final grades t and credit of course 2


75 65 80 4

Enter lab, midterm final grades t and credit of course 3


50 60 25 4

The following output will be displayed from the monitor

Course Resulted grade Letter grade


1 82 B
2 71 C
3 41 F

GPA Value = 1.90

The following grading system will be used to find the GPA of a


student:
Grade %Mark Point Count
(PCount)
A 90-100 4.0
B 75-89 3.0
C 60-74 2.0
D 46-59 1.0
F 0-45 0.0

For example the GPA for the above student is calculated as

Grade PCount
Course 1 0.15*100+0.35*85+0.5*75 = 82 3.0
Course 2 0.15*75+0.35*65+0.5*80 = 85 3.0
Course 3 0.15*50+0.35*60+0.5*25 = 41 0.0
Numberofcourses
∑ Credit i∗PCount i
i=1
Numberofcourses
∑ Credit i
GPA = i=1 = (3*3.0+4*3.0+4*0.0)/(3+4+4) = 1.90

You might also like