Question
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
,
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
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