In this lab, you add the input and output statements to a partially completed visual basic program. When completed, the user should be able to enter a year and then click ok button, enter a month and then click ok button and enter a day and then click ok button to determine if the date is valid years are those that are greater than 0, valid months include the values 1 through 12, and valid days include the values 1 through 31.
1. Open the source file named baddate.vb
2.Notice that variables have been declared for you.
3.Write the simulated housekeeping() procedure that contains the input statements to retrieve a year, a month and a day from the user.
4. Add statement to the simulated housekeeping() procedure that convert the string representation of the year, month and day to integers.
5.Include the output statement in the simulated endOfjob() procedure. The format of the output is as follows: month/day/year is valid date.
month/day/year is an invalid date.
6.save this source code file in a directory of your choice, and then make that directory your working directory.
7.compile the source code file badDate.vb.
8.Execute the program entering the following date:, , record the output of this program.
9. Execute the program entering the following date:, , .record the output of this program.