Answered step by step
Verified Expert Solution
Link Copied!

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

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

MongoDB Applied Design Patterns Practical Use Cases With The Leading NoSQL Database

Authors: Rick Copeland

1st Edition

1449340040, 978-1449340049

More Books

Students also viewed these Databases questions

Question

What are the key stages of WP/WIP/SWP?

Answered: 1 week ago