switch
statement or a set of if
statements to display the name of the month (and the year)
and to set the number of days in the month. Nothing else needs to be done
in your conditional statement.)
MONTHLY CALENDAR PROGRAM This program displays a calendar. You need to provide the year, and the day of the week on which January 1 falls. Enter the year for which you would like a calendar: 2015 Enter the code number for the day of the week on which January 1 falls: 0- Sun 1- Mon 2- Tue 3- Wed 4- Thu 5- Fri 6- Sat Enter the day code now: 4 January 2015 Sun Mon Tue Wed Thu Fri Sat 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 February 2015 Sun Mon Tue Wed Thu Fri Sat 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 March 2015 Sun Mon Tue Wed Thu Fri Sat 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 . . .(output continues for all 12 months)
Export your Eclipse project to a zip file and submit the zip file via web-based turnin. To export a project, go to File | Export… and choose Archive File from the General folder. Check off the entire project in the top left window and make sure the format is .zip and not .tar. Finally, give the archive file a name and click finish.
The name of the turnin project is Homework 1.
Programs submitted after 5pm on March 24 will be tagged as late, and will be subject to the late homework policy.