Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions

Question

Explain exothermic and endothermic reactions with examples

Answered: 1 week ago

Question

Write a short note on rancidity and corrosiveness.

Answered: 1 week ago

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago