Related questions with answers
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
Create an application that lets the user enter a month (in numeric form), 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.
Solution
VerifiedFor this task, we will create a Form and add three Label controls, three TextBox controls and one Button control to it.
The user will enter a month, a day and a two-digit year to separate TextBox controls and these data will be used to determine if the date is magical or not.
First, we will create Form and add all the controls to it in the Designer window.
The names of the TextBox controls will be changed to textBoxMonth
, textBoxDay
and textBoxYear
. Accordingly, the values of Text property of Label controls will be changed to Month
, Day
and Year
.
The Button control’s name will be changed to checkButton
and its Text property will also be altered.
Create a free account to view solutions
Create a free account to view solutions
Recommended textbook solutions

Computer Organization and Design MIPS Edition: The Hardware/Software Interface
5th Edition•ISBN: 9780124077263 (6 more)David A. Patterson, John L. Hennessy
Fundamentals of Database Systems
7th Edition•ISBN: 9780133970777Ramez Elmasri, Shamkant B. Navathe

Introduction to Algorithms
3rd Edition•ISBN: 9780262033848 (3 more)Charles E. Leiserson, Clifford Stein, Ronald L. Rivest, Thomas H. CormenMore related questions
1/4
1/7