Question
You have been contracted to write a JAVA program that will generate a students Grade Point Average (GPA) for any given semester. The program MUST
You have been contracted to write a JAVA program that will generate a students Grade
Point Average (GPA) for any given semester.
The program MUST prompt the student to enter ALL of the following:
Students name (First and Last in separate variables)
Student ID (e.g. 00022333)
Academic Year (e.g. 2020/2021)
Semester No (e.g. II)
The number of courses did in the above semester (e.g. 3)
FOR EACH COURSE, the program MUST prompt the student for the below course
information: -
Course Code (e.g. ITEC133)
Course Credit (e.g. 3)
Grade earned in the course (e.g. A)
After acquiring the pertinent information from the student, the program MUST then calculate the
students GPA.
The TOTAL number of quality points earned for the semester divided by the TOTAL
number of credits earned will yield a student semester GPA.
Quality points for EACH course is calculated by multiplying the GRADE VALUE assigned to
the grade for that course by the number of credits for the course.
(Example, if a student earns an A in a course (ITEC133) and the credit given to that course is (3)
then the Quality Points for the said course would equate to 12 (4 (grade value) x 3 (credits)).
Please refer to the below table to see the grade and grade value points assign to each grade.
Grade Grade Description Marks (%) Grade Value Points
A Excellent 90 100 4.0
B+ Very Good 85 89.9 3.5
B Good 80 84.9 3.0
C+ Satisfactory 75 79.9 2.5
C Average 70 74.9 2
D+ Below Average 65 69.9 1.5
D Minimum Passing Grade 60 64.9 1.0
F Fail 0.0 59.9 0.0
After calculating the students GPA for a given semester the program MUST print the students
name, ID number and their GPA for the given academic year and semester.
Example of how the program must run
Example 1
Please enter student name: Kevin Hart
Please enter student ID: 00011111
Please enter the Academic Year: 2020/2021
Please enter the Semester No: 1
Please enter the number of courses did in the above semester: 3
Please enter the Course Code: ITEC133
Please enter the Course Credit: 3
Please enter Grade received in the course: A
Please enter the Course Code: ITEC 120
Please enter the Course Credit: 3
Please enter Grade received in the course: B+
Please enter the Course Code: MATH 117
Please enter the Course Credit: 3
Please enter Grade received in the course: B
Kevin Hart your GPA for year 2020 / 2021 semester II is 3.5
Example 2
Please enter student name: Marion Ashby
Please enter student ID: 00019999
Please enter the Academic Year: 2020 / 2021
Please enter the Semester No: II
Please enter the number of courses did in the above semester:1
Please enter the Course Code: LIBS 130
Please enter the Course Credit: 3
Please enter Grade received in the course: B
Marion Ashby your GPA for year 2020/ 2021 semester II is 3.0
General Guidelines
1. Make use of appropriate messages to make your program as informative and user friendly as
possible, without being unnecessarily complex.
2. Keep user interactions simple and instructions clear.
3. Use adequate documentation (comments) and proper indentation to clarify your program
code where necessary and improve layout.
Programming Guidelines (Minimum Methods)
1. Create a method called calQualityPoints that accepts the appropriate arguments and
calculates the quality points for each course.
2. Create a method called calGpa that accepts the appropriate arguments and calculates the
students GPA for a semester and returns the results to the main method.
3. Arrays MUST be used.
Requirements
1. A one-page description of how you tested the program to make sure that it worked. This
should include a table showing various combinations of inputs with expected, and actual,
outputs, plus a brief discussion of why you chose the particular values in the table. (HINT:
make sure your program works with various combinations of extreme values. For example, it
should give a correct output for a student who didnt pursued any courses in a particular
semester and for a student who pursued a maximum of five courses in a particular semester.
2. A one-page description of how your program works. Make reference to the different
variables, control structures, methods and data structures you used.
Program
1. Documentation and layout (Comments, spacing, indentation)
2. Correct use of basic control constructs (sequence, selection and repetition)
3. Proper layout of interface for input and output of data/information
4. Correct use of the two methods as indicated
5. Correct creation and use of arrays to hold and process data
6. Working Program (no syntax errors, correctness, efficiency, user interaction)
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