Question: Write a program to print a formatted month or year calendar 1) command line arguments: output file name Year month month is optional 2) If
Write a program to print a formatted month or year calendar 1) command line arguments: output file name Year month month is optional 2) If month is provided, print the month calendar only, else print the year calendar 3) the week starts on Monday 4) the calendar should be written to the file provided. 5) the calendar should be formatted so they are aligned 6) you could use Calendar class or your own methods to find the day of a week for a particular day. 7) please comment your code as needed 8) please submit a zip file that has the source code, i.e.java file sample output files: a month calendar a year calendar
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
