Question: 6 # Declare variables 7 valid _ date = True 8 min _ year, min _ month, max _ month, min _ day, max _
# Declare variables
validdate True
minyear, minmonth, maxmonth, minday, maxday
# This is the work of the housekeeping method
def housekeeping:
yearint inputEnter the year:
monthint inputEnter the month:
dayint inputEnter the day:
# Get the year, then the month, then the day
# Convert strings to integers
year int year
monthint month
dayint dax
# This is the work of the detailloop method
# check to be sure date is valid
# This is the work of the endofJob method
if year min year:
validdate False
plifmonth
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
