Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ ONLY!! PLEASE ANSWER QUESTION THEN FILL IN TEST TABLE WITH DIFFERENT INPUT!! Use a switch statement to write the following program: The program prompts

C++ ONLY!! PLEASE ANSWER QUESTION THEN FILL IN TEST TABLE WITH DIFFERENT INPUT!!
image text in transcribed
image text in transcribed
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: A B C D E F 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 ' and ' d ": display "Average" For grade '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, multiple invalid inputs, and a combination of upp and lower ease letters (but not every possible combination). After reading the question requirements, but before beginning any coding, create the test case table, below, completed through column Expected Output. Write your program then complete the test table with actual output results and include in your report, AFTER your source code - Every branch, loop, and output message should be tested. - Test for ID 10 T user imput Copy/Paste your completed source code. You must always include standard "comment header" in your programs, even if code is provided. Run all tests in your test plan - If a test produces expected output, type that output into Actual Output column and enter Pass in final column - If a test doesn't produce expected output - If it's because you didn't understand what the computer would produce/do, then correct the expected output and complete test row as above - If it's because there was a logic/semantic error in your program, enter Fail, create a new test row (5a if test was 5), correct your program, test again - Include your completed test plan after source code - Paste in a snippet of output showing results for every listed test case, labeled with test \# Test Table

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions