Question: Java **PLEASE DO NOT HANDWRITE** Magic Dates The date June 10, 1960, is special because when we write it in the following format, the month
Java
**PLEASE DO NOT HANDWRITE**
Magic Dates
The date June 10, 1960, is special because when we write it in the following format, the month times the day equals the year:
6/10/60
Write a program that asks the user to enter a month (in numeric form), a day (in numeric form), and a two-digit year (in numeric form). The program should then determine whether the month times the day is equal to 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.
Running the program may look like the following:
Enter a month: 2
Enter a day: 20
Enter a two-digit year: 40
The date entered is: 2/20/40
Date 2/20/40 is a MAGIC date!
Or
Enter a month: 7
Enter a day: 30
Enter a two-digit year: 95
The date entered is: 7/30/95
Date 7/30/95 is NOT a magic date!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
