Computers and Technology

Write a program to generate the entire calendar for one year. the program must get two values from the user: (1) the year and (2) the day of the week for january 1st of that year. the year, which should be positive, is needed to check for and handle leap years1. the day of the week for january 1st is needed so that you know where to start the calendar. the user should enter 0 for sunday, 1 for monday, … or 6 for saturday. as always, you need to validate the user's input. to actually print the calendar, you must use a single method that prints out the calendar for one month and then call this function 12 times from once for each month in the year. to check for a leap year you will need to write another method that takes the year as a parameter and returns true if it’s a leap year, or false otherwise. stubs (i. e. method signatures without any code) for both of these methods have been provided for you. the calendar should be printed in the form below. in this example, january starts on a saturday (day 6). note that february starts on a tuesday in this example because january ended on a monday

answer
Answers: 3

Similar questions

Do you know the correct answer?
Write a program to generate the entire calendar for one year. the program must get two values from t...

Questions in other subjects: