Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Lab 3 B: GPA calculator. We re getting more practice making a calculator! GPA is important. It s one of the many things employers look
LabB: GPA calculator. Were getting more practice making a calculator! GPA is important. Its one of the
many things employers look at when recruiting new candidates. You also need a GPA of at least to
graduate from KSU. GPA is measured by quality points using the following scale:
A quality points
B quality points
C quality points
D quality point
F quality points
Each course counts for a certain number of credit hours. For instance, most courses are credit hours. This lab
is a credit hour course. Calculus counts credit hours. To calculate the quality points for one course, multiply
the number of hours of that course times the quality points you earn for that course.
To calculate your GPA for the whole semester, you take the total number of quality points earned that semester
and divide it by the total number of hours taken that semester.
For this lab, write a program that reads from the user the number of hours and quality points earned for four
courses then calculates the total hours, total quality points and GPA. You should only use floats as the data
type for your variables. An example run is shown below. The user input is in bold.
Sample run :
Course hours:
Grade for course :
Course hours:
Grade for course :
Course hours:
Grade for course :
Course hours:
Grade for course :
Total hours is:
Total quality points is:
Your GPA for this semester is
Sample run :
Course hours:
Grade for course :
Course hours:
Grade for course :
Course hours:
Grade for course :
Course hours:
Grade for course :
Total hours is:
Total quality points is:
Your GPA for this semester is in csharp
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