Question: Write a program that prompts the user to enter the day of the week and then prints out a message that corresponds to a particular
Write a program that prompts the user to enter the day of the week and then prints out a message that corresponds to a particular day (or days).
Below are some sample runs of the program. The bold words is the user input. The examples are all seperate runs. The program does not need to process multiple days in a single run.
1) If the user enters Saturday or Sunday:
What's today: Saturday
Weekend!
2) If the user enters Monday, Tuesday, or Thursday:
What's today: Monday
Weekday.
3) If the user enters Wednesday:
What's today: Wednesday
Half way there.
4) If the user enters Friday:
What's today: Friday
Almost the weekend!
5) If the user enters something that is not a day of the week:
What's today: Banjo
That doesn't appear to be valid day.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
