Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( Python ) A magic date is one where the month times the day = 2 - digit year. For example: 6 / 1 0

(
Python
)
A "magic" date is one where the month times the day
=
2
-
digit year.
For example:
6
/
1
0
/
6
0
is a "magic" date, because the month,
6
,
times the day,
1
0
,
is equal to the year,
6
0
.
Write a plan and code a program that asks the user for the month, day, and year.
If all
3
inputs are integers, determine if the date is magic. You do not have to ensure that the month and day are valid.
Output a message such as "The date, xx
/
xx
/
xx is magic" or "The date xx
/
xx
/
xx is not magic".

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David J. Auer

3rd Edition

0131986252, 978-0131986251

More Books

Students also viewed these Databases questions

Question

Would I say yes to this message?

Answered: 1 week ago

Question

Write a short note on rancidity and corrosiveness.

Answered: 1 week ago