Imagine that you are a student about to graduate you


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 summa cum laude, 3.8 to 3.89 is magna cum laude, 3.65 to 3.79 is cum laude, 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 summa cum laude is false. Graduating magna cum laude is true. Graduating cum laude is false. Graduating without honors is false.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Imagine that you are a student about to graduate you
Reference No:- TGS02626851

Now Priced at $10 (50% Discount)

Recommended (99%)

Rated (4.3/5)