Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c++ Exercise P8.7. Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, see the
c++
Exercise P8.7. Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, "see the den- tist") and a date and time. Write a virtual function occurs_on int year, int month int day) that checks whether 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 of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date. Don't forget about leap years. See the algorithm https://en.wikipedia.org/wiki/Leap yeair. C:Windowsisystem32cmd.exe Enter the list of appointments. Appointment's description: a job fair Appointment's type: Onetime Appointnent's starting date: 03/15/2018 Appointment's time: 9:30 Another appointmentStep 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