Question: Create a program that gives the user a menu of options for grading purposes, it should look something like this (in bold are the details

  • Create a program that gives the user a menu of options for grading purposes, it should look something like this (in bold are the details of the required information):

Menu Options 1. Enter your test score, I'll tell you the grade. (0-59 F, 60-69 D, 70-79 C, 80-89 B, 90-100 A, everything else is invalid) 2. Enter your GPA to see if you made the Dean's List. (3.9 - 4.0 makes the dean's list, 0-3.8 doesn't make the dean's list, everything else is invalid) 3. Exit Enter a choice:

Control structures to use:

1. Use a switch statement for the menu options

2. Use if/else statements for the conditions under each option

Teacher Comments and example

Here, I have a starting point for this lab, it includes printing the menu and options using the switch statement to switch between the options

 Create a program that gives the user a menu of options

#include using namespace std; int number; int main() { int option; I/Here you will need variables for test score and gpa cout > option; switch (option) { case 1: 1/Here you will add code to ask the user for a test score between 0-100 //then determine grade and print out the results //If you choose to do the extra credit, you do it right after an input break; case 2: 1/Here you will ask the user for gpa between 0.0-4.4, stermine dean's list //status and print results //If you choose to do the extra credit, you do it right after an input break; case 3: I/Here you will add a proper exit message break; default: 1/Here you will add a proper error message if user inputs anything that's /ot 1, 2, or 3 } return 0; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!