Question: please solve using python code. This chapter deals with decision structures and boolean logic. So do not write the code giving me definitions or lists

please solve using python code. This chapter deals with decision structures and boolean logic. So do not write the code giving me definitions or lists or anything higher then the beginner level. Solve using if statements since that is what the chapter is dealing. note: also make sure to print out whehter the it is leap year or not on the console please, thank you.
Exercise 6. Magic Dates (15 points)
The date June 10,1960, is special because when it is written in the following format, the
month times the day equals the year: 6/10/60
Design a program that asks the user to enter a month (in numeric form), a day, and a four-
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.
Must check for valid month and month. (3 points)
For e.g. if month is 4 then day can not be 31.(3 points)
If it is a leap year, day can be 29 for month of February. (3 points)
Allow the user to enter a year between 1900 and 2030. Verify it is in this range only.
Use the last 2 digits of the year entered for determining if it is a magic date or not, Use the
4 digit year to determine leap or not.
Hint: You can you use the '%' operator to find the right two digits of the year. See Table 2-
3(in section 2.7)
Prints an appropriate response. (3 points)
Include various years such as 2000,1980 etc. which are leap years and not leap years in
testing to verify_your program functions correctly. Include the output as comments in
your program. (3 points)
Check for LEAP year: If the year is evenly divisible by 400 to confirm a leap year. If a year
is divisible by 100, but not 400, then it is not a leap year.
please solve using python code. This chapter

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!