Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

1/a.Design a program in python that asks the user to enter (in numeric form): a month; a day; and a two-digit year. The program should

1/a.Design a program in python that asks the user to enter (in numeric form): a month; a day; and a two-digit year. The program should then determine whether the month times the day equals the year. If so, it should display a message saying the date is magic. Otherwise, it should display a message saying the date is not magic.

b. Add to (a) some additional code that will determine if the date that the user types in is indeed a valid date. Your program should not even attempt to test to see if the date is a Magic Date if the date typed in is not a valid date. If it is a valid date, print out that the date is valid, then continue checking to see if it is a Magic Date.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions