68 758
Assignments Done
Successfully Done
In January 2019

Answer to Question #58089 in C++ for syed

Question #58089
a. Using a do-while statement, write, compile, and run a C++ program to accept
a grade. The program should request a grade continuously as long as an invalid grade is
entered. An invalid grade is any grade less than 0 or greater than 100. After a valid grade has
been entered, your program should display the value of the grade entered.
b. Modify the program written for Exercise 1a so that the user is alerted when an invalid grade
has been entered.
c. Modify the program written for Exercise 1b so that it allows the user to exit the program by
entering the number 999.
d. Modify the program written for Exercise 1b so that it automatically terminates after five
invalid grades are entered.
Expert's answer

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions