Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Language - C++ 1. Write a function called printGrade. a. function has a void return type b. function accepts one char parameter c. If the
Language - C++
1. Write a function called printGrade.
a. function has a void return type
b. function accepts one char parameter
c. If the parameter is an A, the function prints out: Great Work!
d. If the parameter is a B, the function prints out: Good job.
e. If the parameter is a C, the function prints out: Passing.
f. If the parameter is a D, the function prints out: Not good.
g. If the parameter is a F, the function prints out: Failing!
h. For any other value, the function prints out: Not a grade.
2. Write a main function with a sentinel-controlled loop that repeatedly asks the user to enter an uppercase letter grade, or Z to quit.
3. For each input, the main should call printGrade and pass it the most recent grade entry.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started