Completed a partially completed Python program. When completed, the user should be able to enter a year and then press Enter, enter a month and then press Enter, and enter a day and then press Enter to determine if the date is valid. Valid years are those that are greater than 0, valid months include the values 1 through 12, and valid days include the values 1 through 31. Follow these steps for the python program to complete the partially completed program: 1. Write the housekeeping() method that contains input statements to retrieve a year, a month, and a day from the user.2. Add statements to the housekeeping() method that convert the string representation of the year, month, and day to ints.3. Include the output statements in the simulated endOfJob() method. The format of the output is as follows:month/day/year is a valid date.ormonth/day/year is an invalid date.
Completed a partially completed Python
When completed, the user should be able to enter a year and then press Enter, enter a month and then press Enter, and enter a day and then press Enter to determine if the date is valid. Valid years are those that are greater
than 0, valid months include the values 1 through 12, and valid days include the values 1 through 31.
Follow these steps for the python program to complete the partially completed program:
1. Write the housekeeping() method that contains input statements to retrieve a year, a
month, and a day from the user.
2. Add statements to the housekeeping() method that convert the string representation
of the year, month, and day to ints.
3. Include the output statements in the simulated endOfJob() method. The format of the output is as
follows:
month/day/year is a valid date.
or
month/day/year is an invalid date.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images