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
Step: 1
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...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