Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 programStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started