Question: write the program in c++. You are only allowed to use the following functions : #include #include #include #include #include Please if you can't write

 write the program in c++. You are only allowed to use

write the program in c++. You are only allowed to use the following functions : #include #include #include #include #include

Please if you can't write the program using the above functions, don't do it. Someone answered it earlier without using the above functions. I appreciate the attempt but that doesn't really help.

write a program to pnnt a calendar for a green year. Design Your main to be short and to cal multiple The output shculd be sent to a file named calendar, txt, All functions that print lo this output fie must have reference parameter of type ofstream open the output filo stream in main before any function cals called IsLeapta delermine if a year is a leap year. The input parameter Write a value-returning bool function any year divisible by 4 is a leap year excep be the year. Use the following to determine a leap yea even though it a leap yea century year. Only contury years divisible by 600 are leap years K1900 was Now consider the following logical expression and see t is correct is divisible by 4 ear 400 0) year 4 a 0) && (year %100 la 0) write another vakue-returning function that has the year 8s the input parameter and returns the day of the week for Jan 1 of that year Call this function from main after you ask the use or the year. Saturday. Assume y is the year. assumes that 0 Sunday. The formula bela janfirst 1 y (y 4) '100) (yl400) 7 (integer division is assumed floating point division will not give the right answer You are to write at least twa mare functions, The first functian wil need the number and the year as wil print the header the ap month's calendar and then return the number selector variable. For each mont that month, Write a switch statement with month number as print the manth name and set a variable to the correct number of days in the month What will the month of February need lo consider? The second functon wil accept as input the number of days in the month and the day of the week that the month starts on then prints out the days of month in the form shown below. This function will need to of so that when the function is finished, the variable the correct update the day the week var starting day for the next month what kind of p wil this day of week variable need to be? Am functions must have a comment block explaining preconditions and postconditions. Main asios the user for the desired calendar year. There wu be a loop structure in main that must be executed 12 times. This laop body wil cal the function lu print the month header, then call the function to print the days the month. Produce a calendar to output for each of the followng years ANO your birth year, Check your to be that you computed January first and leap years correctly! Make sure that the next month day the week day after the previous month ends. Make sure December ends an you turn in incorrect calendars, you wir lose A LOT of point Dec 31 will be on: Leap Year? Year Jan 1 was on Wednesday Wednesday Thursday 20 you bith year------ January 2016 For each month You must design a "bax around Header must include month 13 14 15 16 name, year, and day indicators. 18 19 20 21 22 23 The numbers must line up 24 25 26 77 28

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!