Try the fastest way to create flashcards
Question

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

Verified
Answered 6 months ago
Answered 6 months ago
Step 1
1 of 2

For 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.

'slader'

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 by David A. Patterson, John L. Hennessy

Computer Organization and Design MIPS Edition: The Hardware/Software Interface

5th EditionISBN: 9780124077263 (6 more)David A. Patterson, John L. Hennessy
226 solutions
Fundamentals of Database Systems 7th Edition by Ramez Elmasri, Shamkant B. Navathe

Fundamentals of Database Systems

7th EditionISBN: 9780133970777Ramez Elmasri, Shamkant B. Navathe
948 solutions
Starting Out with Visual C# 4th Edition by Tony Gaddis

Starting Out with Visual C#

4th EditionISBN: 9780134382609 (3 more)Tony Gaddis
1,014 solutions
Introduction to Algorithms 3rd Edition by Charles E. Leiserson, Clifford Stein, Ronald L. Rivest, Thomas H. Cormen

Introduction to Algorithms

3rd EditionISBN: 9780262033848 (3 more)Charles E. Leiserson, Clifford Stein, Ronald L. Rivest, Thomas H. Cormen
872 solutions

More related questions

1/4

1/7