Question
C++ Imagine that you are a student about to graduate. You realize that it would be handy to have a tool to help you calculate
C++
Imagine that you are a student about to graduate. You realize that it would be handy to have a tool to help you calculate your GPA and determine whether you are graduating with honors. In the GPA scale, an A is a 4.0, a B is 3.0, a C is 2.0, a D is 1.0, and an F is 0.0. GPA scales typically factor in course credits as well, but all of your classes are the same number of credits, so you can ignore that as a variable. Honor level is based on the following scale: greater than or equal to 3.9 is summacumlaude, 3.8 to 3.89 is magnacumlaude, 3.65 to 3.79 is cumlaude, below 3.65 there are no honors given. Your graduation calculator should prompt the user to input four grades as the numerical value (you can ask four times, one at a time), calculate the average of the inputted grades, display this value to the user, and display a Boolean (true or false) statement for each of the honor levels.
You can use the grades A, A, B, and A as a test case, which should result in the following: Your GPA is 3.75. Graduating summacumlaude is false. Graduating magnacumlaude is false. Graduating cumlaude is true. Graduating without honors is false.
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