Page 1 of 1

this topic includes objects and please screenshot your codes if you can thank you

Posted: Sat May 14, 2022 6:57 pm
by answerhappygod
this topic includes objects and please screenshot your codes if you can thank you
This Topic Includes Objects And Please Screenshot Your Codes If You Can Thank You 1
This Topic Includes Objects And Please Screenshot Your Codes If You Can Thank You 1 (21.95 KiB) Viewed 27 times
This Topic Includes Objects And Please Screenshot Your Codes If You Can Thank You 2
This Topic Includes Objects And Please Screenshot Your Codes If You Can Thank You 2 (22.83 KiB) Viewed 27 times
4. Design and implement a CalendarType that implements the calendar date in a program. The Calendar Type object should store the month, day, date and year. Add the appropriate member function prototypes to the object (a default constructor, accessors, mutators, print, and the change calendar date. Write the member function definitions for the descriptions below (25pts). a. A public member function called print to the calendar date in the form Day, Month Date, Year (1. e., Friday, July 30, 2021) to a file. The function takes a output file reference as its parameter. b. A public member function called countDays that takes a Calendar Type object as its parameter. The function should count how many day are between the current object's date and the parameter CalendarType object) and return the integer value to the calling function. The function works by subtracting the current date from the second Calendar Type object.

4. Design and implement a Calendar Type that implements the calendar date in a program. The Calendar Type object should store the month, day, date and year. Add the appropriate member function prototypes to the object (a default constructor, accessors, mutators, print, and the change calendar date. Write the member function definitions for the descriptions below (25pts). a. A public member function called print to the calendar date in the form Day, Month Date Year (ie, Friday, July 30, 2021) to a file. The function takes a output file reference as its parameter. b. A public member function called countDays that takes a CalendarType object as its parameter. The function should count how many day are between the current object's date and the parameter (CalendarType object) and return the integer value to the calling function. The function works by subtracting the current date from the second Calendar Type object.