Write a C++ program that will ask for a number which will determine the grading system. If the number is between 90 and 100, display "Excellent". If the number is between 80 and 91, display "Well done". If the number is between 70 and 81, display "Good". If the number is between 60 and 71, display "Better luck next time". If the number is between 50 and 61, display "Needs more effort". If the number is between 0 and 50, display "Failed".

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter4: Control Structures I (selection)
Section: Chapter Questions
Problem 20PE: The cost of renting a room at a hotel is, say $100.00 per night. For special occasions, such as a...
icon
Related questions
Question

Write a C++ program that will ask for a number which will determine the grading system. If the number is between 90 and 100, display "Excellent". If the number is between 80 and 91, display "Well done". If the number is between 70 and 81, display "Good". If the number is between 60 and 71, display "Better luck next time". If the number is between 50 and 61, display "Needs more effort". If the number is between 0 and 50, display "Failed".

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,