Question: Homework 3: Magic Dates The date June 10, 2060, is special because when it is written in the following format, the month times the day
Homework 3: Magic Dates The date June 10, 2060, 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 (Homework-3A & Homework-3B 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. Homework 3B: Valid Date Test Add to Homework-3A some additional code that will determine if the date that the user types in is indeeda 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 Remember the following rules with respect to dates: 00year99 * 01
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
