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

Instructions

  1. Notice that variables have been declared for you.
  2. Write input statements to retrieve a year, a month, and a day from the user.
  3. Include the print statements to output the following:or
  4. Execute the program entering the following input:
  5. Execute the program entering the following input:
month = 9 day = 21 year = 2002
month = 5, day = 32 year = 2014
month/day/year is an invalid date. 
month/day/year is a valid date.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Variables have been declared for you month 0 day 0 year 0 Write i... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!