[solved]-55 Write C Program Create Calendar Year Program Reads Year Keyboard Calculates Day Week Su Q39033613

55. Write a C program to create a calendar for a year. The program reads the year from the keyboard. It then calculates which day of the week (SUN, MON TUE WED, THU, FRI, SAT) is the first day of the year and prints the calendar for that year. After printing the year, it should ask if the user wants to continue. If the answer is yes, it will print the calendar for another year until the user is done. The program prompts the user for the input, as shown in the next 12 FL. BOTTL example. 2000 calendar : Enter the year for your calendar The output is a calendar for the whole year (12 month shown in the next example. 2 months). One the JANUARY 2000 SUN MON TUE WED THU FRI SAT 2 3 4 9 10 11 16 17 18 23 24 25 30 31 5 6 7 8 12 13 14 15 19 20 21 22 26 27 28 29 To print the correct calendar for the requested year, you must first findet day of the week is the first day of the that year. This can be done with lowing formula. (For a complete explanation, see Chapter 5, Project 6L) (((year – 1) 365) + [year – 17-year- 11:[year:1574757 You also must calculate leap years. The formula for this also found in Chapter 5, Project 61. Run your program once with the following sets of dat ula for this calculation SET 1: 2005 SET 2: 0 SET 3: 2000 SET 4: 123 Show transcribed image text 55. Write a C program to create a calendar for a year. The program reads the year from the keyboard. It then calculates which day of the week (SUN, MON TUE WED, THU, FRI, SAT) is the first day of the year and prints the calendar for that year. After printing the year, it should ask if the user wants to continue. If the answer is yes, it will print the calendar for another year until the user is done. The program prompts the user for the input, as shown in the next 12 FL. BOTTL example. 2000 calendar : Enter the year for your calendar
The output is a calendar for the whole year (12 month shown in the next example. 2 months). One the JANUARY 2000 SUN MON TUE WED THU FRI SAT 2 3 4 9 10 11 16 17 18 23 24 25 30 31 5 6 7 8 12 13 14 15 19 20 21 22 26 27 28 29 To print the correct calendar for the requested year, you must first findet day of the week is the first day of the that year. This can be done with lowing formula. (For a complete explanation, see Chapter 5, Project 6L) (((year – 1) 365) + [year – 17-year- 11:[year:1574757 You also must calculate leap years. The formula for this also found in Chapter 5, Project 61. Run your program once with the following sets of dat ula for this calculation SET 1: 2005 SET 2: 0 SET 3: 2000 SET 4: 123
Expert Answer
Answer to 55. Write a C program to create a calendar for a year. The program reads the year from the keyboard. It then calculates … . . .
OR

