Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

1583473858, 978-1583473856

More Books

Students also viewed these Databases questions

Question

LO1 Understand human resource management and define human capital.

Answered: 1 week ago