Question: Magic Dates (MagicDates.java) The date June 10, 1960, is special because when you write it in the following format, the month times the day equals

Magic Dates (MagicDates.java)

The date June 10, 1960, is special because when you write it in the following format, the month times the day equals the year. 6/10/60

Write a program (MagicDates.java) that asks the user for his/her birthday: month, day, and a two-digit year. All are numeric values. The program should then determine whether the month times the day is equal to the year. If so, display a message saying You were born in a magic date. Hogwarts welcomes you to the School of Witchcraft and Wizardry; otherwise, display a message saying You were born in a no-magic date; the muggle world is your home

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 Databases Questions!