Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program GPA.java to calculate the GPA of student grades. Program will ask user to enter the course units and the grade point for

Write a program GPA.java to calculate the GPA of student grades. Program will ask user to enter the course units and the grade point for all the courses. Calculate and print the total number of courses, total units, total grade point and GPA. If no course is entered, print No courses entered.

Sample output:

Enter course 1 units (-1 to exit): 3.0

Enter grade point (A-4.0, B-3.0, C-2.0, D-1.0, F-0.0): 4.0

Enter course 2 units (-1 to exit): 4.0

Enter grade point (A-4.0, B-3.0, C-2.0, D-1.0, F-0.0): 3.0

Enter course 3 units (-1 to exit): 1.0

Enter grade point (A-4.0, B-3.0, C-2.0, D-1.0, F-0.0): 4.0

Enter course 4 units (-1 to exit): 2.0

Enter grade point (A-4.0, B-3.0, C-2.0, D-1.0, F-0.0): 2.0

Enter course 5 units (-1 to exit): -1

Total number of courses: 4

Total Units: 10.0

Total Grade Points:32

GPA: 3.20

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

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions

Question

Understand the key features of recruitment and selection policies

Answered: 1 week ago