Implement a base class Appointment and derived classes Onetime, Daily, Weekly
Chapter 10, Problem P10.12(choose chapter or problem)
Implement a base class Appointment and derived classes Onetime, Daily, Weekly, andMonthly. An appointment has a description (for example, see the dentist) and a dateand time. Write a virtual function occurs_on(int year, int month, int day) that checkswhether the appointment occurs on that date. For example, for a monthly appointment,you must check whether the day of the month matches. Then fill a vector ofAppointment* with a mixture of appointments. Have the user enter a date and print outall appointments that happen on that date.
Unfortunately, we don't have that question answered yet. But you can get it answered in just 5 hours by Logging in or Becoming a subscriber.
Becoming a subscriber
Or look for another answer