Question: Write a C++ program using the selection statements if else, if else if, and switch to show the description of the quality of a

    Write a C++ program using the selection statements if else, if else 

Write a C++ program using the selection statements if else, if else if, and switch to show the description of the quality of a service. Services are rated from 1 to 5 stars: 5 is excellent, 4 is very good, 3 is good, 2 is poor, and 1 is very poor. The program output ~/data structures/c++ programming$ ./"C++ selection statements" Rate the service from 1 to 5: 5 5 stars is excellent 5 stars is excellent 5 stars is excellent ~/data structures/c++ programming$ ./"C++ selection statements" Rate the service from 1 to 5: 4 4 stars is very good 4 stars is very good 4 stars is very good ~/data structures/c++ programming$ ./"C++ selection statements" Rate the service from 1 to 5: 3 3 stars is good 3 stars is good 3 stars is good ~/data structures/c++ programming$ ./"C++ selection statements" Rate the service from 1 to 5: 2 2 stars is poor 2 stars is poor 2 stars is poor ~/data structures/c++ programming$ ./"C++ selection statements" Rate the service from 1 to 5: 1 1 star is very poor 1 star is very poor 1 star is very poor ~/data structures/c++ programming$ ./"C++ selection statements" Rate the service from 1 to 5: 0 0 stars is not a valid rate 0 stars is not a valid rate 0 stars is not a valid rate

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 Programming Questions!