subject
Social Studies, 14.02.2020 22:28 Jasten

In this lab, you add the input and output statements to a partially completed Python program. When completed, the user should be able to enter a year, a month, and a day. The program then determines 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.

Instructions

Notice that variables have been declared for you.

Write input statements to retrieve a year, a month, and a day from the user.

Include the print statements to output the following:

month/day/year is a valid date.
or

month/day/year is an invalid date.
Execute the program entering the following input:

month = 5, day = 32 year = 2014
Execute the program entering the following input:

month = 9 day = 21 year = 2002

ansver
Answers: 3

Another question on Social Studies

question
Social Studies, 22.06.2019 11:20
All of the following statements point out negative aspects of the gilded age except: a. politicians gave government jobs to political supporters. b. political bosses cheated large cities out of millions of dollars. c. industrialists bribed members of congress to ensure favorable votes. d. in 1903, wisconsin became the first state to hold primary elections.
Answers: 1
question
Social Studies, 22.06.2019 13:00
Germany's black forest is being destroyed as a result of which environmental issue ?
Answers: 1
question
Social Studies, 22.06.2019 15:30
Which sentences describes a cycle of dependency? a. aid harms the local economy creating the need for more aid.b. aid improves infrastructure and creates more wealth and more good infrastructure.c. aid programs become more reliable over time so people can depend on them.d. no answer is correct
Answers: 1
question
Social Studies, 23.06.2019 01:00
What effect did the enclosure acts have on people’s working lives? a. changes brought about by the acts prevented large farmers from taking lands from smaller farmers. b. small farmers could no longer work on common lands and had to move to cities for work. c. peasants started working on enclosed lands and soon became wealthy because of higher wages. d. landowners forced peasants to build roads and bridges as part of the new enclosure laws.
Answers: 1
You know the right answer?
In this lab, you add the input and output statements to a partially completed Python program. When c...
Questions
question
Mathematics, 26.09.2019 14:30
Questions on the website: 13722362