Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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_2

Step: 3

blur-text-image_3

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

Practical Oracle8I Building Efficient Databases

Authors: Jonathan Lewis

1st Edition

0201715848, 978-0201715842

More Books

Students also viewed these Databases questions

Question

7. Where Do We Begin?

Answered: 1 week ago

Question

a. What is the purpose of the team?

Answered: 1 week ago

Question

b. What are its goals and objectives?

Answered: 1 week ago