Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Kindly follow the instructions: Use only C++ Make separate .h , .cpp and main files There are similar questions already available on Chegg but they
Kindly follow the instructions:
Use only C++
Make separate .h , .cpp and main files
There are similar questions already available on Chegg but they don't have a separate class for Date and some other things, so do add these things according to the question given in the photo
A. Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. (10 2+2+2+2+2) a. An appointment has a description (for example, "see the dentist") and a date and time. b. Create a separate class Date to store Date and Time. c. Write getters and setters for the base class. d. Write appropriate constructors and destructors for all the classes. B. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. (10) For example, for a monthly appointment, you must check whether the day of the month matches. Write a test function to fill an array of Appointment* with a mixture of appointments a. b. Have the user enter a date and print out all appointments that happen on that date
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started