Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ ---------- Question 2 Use a switch statement to write the following program The program prompts the user for a letter grade (of type char).

C++ ----------image text in transcribed

Question 2 Use a switch statement to write the following program The program prompts the user for a letter grade (of type char). The list of valid letter grades is: AB D E The program should properly handle both lower and upper case as valid input. The program will then display the following messages: For grade A" display "Excellent" For grade b': display "Good" For grade 'C': display "Average" For grade 'd' or 'E': display "Below Average" For grade 'F': display "Fail" For any other letter grade entered by users: display "Invalid Grade" Your test plan should include tests for each possible output, invalid input, and upper and lower case letters

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 Ultimate Database For Cloud Analytics And Mobile

Authors: John Campbell, Chris Crone, Gareth Jones, Surekha Parekh, Jay Yothers

1st Edition

1583474013, 978-1583474013

More Books

Students also viewed these Databases questions

Question

1. Are my sources credible?

Answered: 1 week ago

Question

3. Are my sources accurate?

Answered: 1 week ago

Question

1. Is it a topic you are interested in and know something about?

Answered: 1 week ago