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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 26 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 26 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply