4. Implement a superclass Appointment and subclasses Onetime, Daily and Monthly. An appointment has a description (for example, "see the dentist") and a date. Write a method occursOn(year,month,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 and the appointment date started before the date entered. Then, fill a list of Appointment objects with a mixture of appointments. Have the user enter a date and print out all appointments that occur on that date.
Download data.txt for your input file (change the data to run different tests) and demo-appointment.py for your program that calls your class Appointment.
a) Your code with comments
b) A screenshot of the execution
Recently Asked Questions
- How do you find volume using cross sections for solids?
- Please refer to the attachment to answer this question. This question was created from 123456789.
- Please refer to the attachment to answer this question. This question was created from Revised Oct 29 STRT 4501 Fall 2018 Syllabus.docx. Additional comments: