Question: 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

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.
LANGUAGE- C++

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!