Question: Must be in c++. Program will output a calender into a file that is inputed by the user. Program will ask for the month, year,

Must be in c++. Program will output a calender into a file that is inputed by the user. Program will ask for the month, year, file to write the calender to, and what day the month begins on.
Make sure the Calender starts on the day that is inputed by the user, for example if the user inputs the number 5 for the day that the Caldender starts then it would begin on Thursday. Instructions are given in the pictures about what to do and what the functions should do and what they should look like. There is also an example output for what the console application should look like and what the text file should look like.
Thank you!  Must be in c++. Program will output a calender into a
file that is inputed by the user. Program will ask for the

Write a program that draws the calendar for a month in the file specified by the user The program will ask the user for the name of the file, the number of the month, the number of the day the month begins on, and the year. The program writes the calendar including the month, year, and column headings for the days of the week to the file specified by the user Your program must include at least three called functions (there may be more). Your program must have the following functions: A function named getMonthName that takes an integer representing a month as its only argument and returns a string that is the month name. For example, if the argument is 11, the string NOVEMBER should be returned. .A function named getDaysInMonth that takes a month number and year as arguments and returns the number of days in the month. For February be sure to consider leap years. The function is prototyped below int getDaysInMonth(int month, int year) A function named drawCalendar that writes the calendar in the file. This function may call other helper functions as needed. The drawCalendar function takes the following arguments: Page 2 of 4 A reference to the stream object linked to the file . A string that contains the month name . An integer that contains the year . An integer that contains the day the month starts . An integer that contains the number of days in the month A sample run of a program and at screenshot of the contents of the file is shown below Sample Output: he calendar to: June2017. ext Enter the name of the file that you want to write t Enter the number corresponding to the month DELL F10 F11 F12 F5 F6 F7 F8 F9 F3 F4 40

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!