Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For this program, create a (very simplified) day of the week calculator. Ask the user to enter the day of the month, and respond with

For this program,

create a (very simplified) day of the week calculator. Ask

the user to enter the day of the month, and respond with the correct day of

the week.

The program will assume thatthe month starts on

Fridayand has30

days

(just like the month ofSeptember in

2017). The program

o

Canassume that the number entered will be an integer

o

Cannot assume that the number entered will be valid!

If the day of the month the user entered is not a valid day of the month (less

than 1 or greaterthan

30

), simply print a short error message to the user.

Otherwise

,

print

the day of the week that day falls on. For instance, the

2nd

would be a

Saturday

, the 10th would be a

Sunday

, etc.

IMPORTANT:

Do

not

write a case for each day of the month. If your program

uses

doze

n

s of

individual

if

,

elif

, or

else

statement

s, you will

lose

significant points.

The question says do not import anything and to use python programming.

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

Hands-On Database

Authors: Steve Conger

2nd Edition

0133024415, 978-0133024418

More Books

Students also viewed these Databases questions