Assignment title: Information
Red Sands University (RSU) is a popular brand of education in Bidiya. RSU
offers business degree for undergraduate programs. It wants to have an
36
ITP – COMP 10005 – SUMMER– 16 – CW3(ASSMNT) – ALL - QP
COMP 10005 Page 2 of 9
information system to calculate the GPA of the students appearing for the
examination. As a first step, you have been asked to develop a mini system
in Java to read data of three (3) students. The program must read the
student id, name and marks scored in 5 modules – module1, module2,
module3, module4, module5. Each module is of 10 credits. The program
must determine the grade based on the marks scored using table 1.1 given
below:
Table 1.1: Determining grades
A A- B+ B B- C+ C C- D+ D D- F
91-
100
87-
90
84-
86
80-
83
77-
79
74-
76
70-
73
66-
69
60-
65
58-
64
50-
57
0-49
Based on the grade, the program must map the equivalent numerical value
of grade for each module using table 1.2 given below:
Table 1.2: Mapping grades to numerical values
Grade Numerical value
A 4.0
A- 3.67
B+ 3.33
B 3.0
B- 2.67
C+ 2.33
C 2.0
C- 1.67
D+ 1.33
D 1.0
D- 0.7
F 0
Finally the program needs to calculate and display the Grade Point Average
ITP – COMP 10005 – SUMMER– 16 – CW3(ASSMNT) – ALL - QP
COMP 10005 Page 3 of 9
(GPA). You may use the following as an example to understand this whole
business process.
Example:
module1 89 A- 10 3.67 X 10 = 36.7
module2 82 B 10 3.0 X 10 = 30.0
module3 85 B+ 10 3.33 X 10 = 33.0
module4 92 A 10 4.0 X 10 = 40.0
module5 77 B- 10 2.67 X 10 = 26.7
--- ---- ---------
50 50 166.7
--- ---- ---------
Sem. GPA = 166.7 / 50 = 3.334
Rounded = 3.34
The program must use array of objects to read the student id, name, marks
in 5 modules for 3 students. Format the output, especially the numeric
values to two decimal places.
Create a test case for sample inputs, work out manually the possible output
for these inputs. Verify that the program actually produces the same
output.
1.3 Evaluation Criteria:
You would be evaluated on the following:
• Originality of answer, i.e. writing your own programs