Question: Question 1 (18 marks] Write a Patient class which inherits from the Person class, download here. The Patient class requires the following: a variable to
![Question 1 (18 marks] Write a Patient class which inherits from](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66efed37072dc_86266efed368b282.jpg)


Question 1 (18 marks] Write a Patient class which inherits from the Person class, download here. The Patient class requires the following: a variable to store the patient ID number for the patient (unique for each patient) a variable to store the patient's address a variable to store the number of visits to the clinic a constructor method, which initialises the variables a method to calculate the total medical fees owed, based on the standard fee (R300) per visit a string conversion method Question 2 [16 marks] Write a Doctor class which inherits from the Person class. The Doctor class requires the following: a variable to store the doctor ID number for the doctor (unique for each doctor) a variable to store the doctor's address a constructor method, which initialises the variables a string conversion method Question 3 [16 marks] Write an Appointment class, which requires the following: a variable to store the patient ID number a variable to store the doctor ID number a variable to store the full timestamp of when the appointment is a variable to store a memo, i.e. description of what happened at the appointment a string conversion method Question 4 (16 marks) Create a program saved in Clinic.py. Your program should be menu-based and should have the following: data structures to store the patients, doctors and appointments options to add a patient, doctor or appointment options to display all the patients, doctors or appointments options to search for and display all the appointments for a particular patient or doctor or quit. Question 5 [24 marks] Modify your program so that it uses pickling to save all the patients, doctors and appointments in files. Use this so that when the clinic program is run, it reads in these files so that the information is available and when the user quits, it saves the information to a "pickled" file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
