Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Informix Database Administrators Survival Guide

Authors: Joe Lumbley

1st Edition

0131243144, 978-0131243149

More Books

Students also viewed these Databases questions

Question

=+ What is the money supply?

Answered: 1 week ago