Question: Design a dental appointment system using Python, with thefollowing requirements. Appointment as a super class, whichcontains four variables (M,D,Y,Desc) Three sub classes (Month, Day,Date). There

Design a dental appointment system using Python, with thefollowing requirements. Appointment as a super class, whichcontains four variables (M,D,Y,Desc) Three sub classes (Month, Day,Date). There should be appointments already created in a list andyou are simply asking the users for a date to check against them.This mean that you need to create them ahead of time. There areseveral ways that you can approach this question. The example belowis just one way of solving this problem. Write a method calledOccursOn inside each of the sub classes that checks whether theappointment occurs on that date (Date), day (Day) or month (Month).Ask the user to enter a date to check (for example, 2006 10 5), andask to user if they want to check against Date, Day or Monthappointment. Based on what the user selected, OccursOn inside eachof the sub class should run and display any matching appointmentand associated descriptions.

Step by Step Solution

3.47 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is one way you could design a dental appointment system using Python that meets the requirements youve described class Appointment def initself month day year desc selfmonth month selfday day sel... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!