Question: please do using do-while loop in c++. Write a program which asks the user to enter a number which represents a weekday (eg 1 for

 please do using do-while loop in c++. Write a program which

please do using do-while loop in c++.

Write a program which asks the user to enter a number which represents a weekday (eg 1 for Sunday, 2 for Monday, etc. Do not accept a number that is out of range. Then display the name of that day. Encase your logic in an outer loop which asks the user if he or she wants to enter another number. An entry of Y will continue asking for days, anything else should end the program. A typical run would be: Enter a day of week value: 15 15 is invalid Enter a day of week value: 6 Friday Do you wish to continue? y Enter a day of week value: 4 Wednesday Do you wish to continue? n Goodbye! Thank you for using our program

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!