Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This Assignment is on Python and I'm struggling with Question 4. Thanks! Question 1 [18 marks] Write a Patient class which inherits from the Person

This Assignment is on Python and I'm struggling with Question 4. Thanks!

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 doctors 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 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.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Discuss the goals of financial management.

Answered: 1 week ago