How to write a program to determine the day of the week. using GUI.
Standard Programming Projects
Problem 1:
For this problem, you are to write a program that inputs three integers representing a month, day, and year. For example, 5 12 2015 represents May 12, 2015. The program should then determine and print the day of the week on which that date falls, (Tuesday). Your program should work for any AD year, (years greater than or equal to 1). (Don't worry about years that are BC. These would have a negative number associated with them. Also, since there was no year 0, you don't need to worry about it either.) You will need to keep track of leap years. (Recall that during leap years February has 29 days.) Every year which is divisible by 4 is a leap year, except those years that are divisible by 100 and not by 400. (The year 1900 was not a leap year, but the year 2000 was a leap year.)
The sample screen below shows what the day look like if displayed within the command window, but for this program you are to create a GUI to enter the desired date and then display the calendar for the month in which the date appears. Have all of the days of the month numbered and in columns for the days of the week, like a normal calendar, but use a yellow background for the special date entered and a grey background for the rest of the days in the month. Have the program keep asking for dates until a "0" is entered.