Question: Assignment #7 CS 3A Winter 2018 1PYT HON etnay19,2010 Programming Assignment 7 (50 points) Due date: February 28, 2018 at 11:59 PM Overview This assignment
Assignment #7 CS 3A Winter 2018 1PYT HON etnay19,2010 Programming Assignment 7 (50 points) Due date: February 28, 2018 at 11:59 PM Overview This assignment will give you experience on the use of classes. Patient Charges [50 points First, create a class called Patient. Patient will consist of eight instance auributes as its basic data. It will also contain instance methods to support that data Second, create a class called Procedure. Procedure will consist of four instance attribudes as its basic data. It will also contain instance methods to support that data. We will use the Patient class to instantiate Patient objects and the Procedure class to instantiate Procedure objets that can be used in our main program. Write a class named Patient that has attributes for the following data: - First-name, middle name, and last-name Address, city, state, and ZIP code Phone number ructor of the Patient class should accept an argument for each attribute. The Patient class should also have accessor and mutator methods for each attribute. Next, write a class named Procedure that represents a medical procedure that has been performed on a patient. The Procedure class should have attributes for the following data: Name of the procedure of the procedure Name of the practitioner who performed the procedure s for the The constructor of the Procedure class should accept an argument for each attribute. The Procedure class shoutd also have accessor and mutator methods for each attribute. Next, write a program that creates an instance of the Patient class, initialized with sample data. Then, create three instances of the Procedure class, initialized with the following data: nat r iwtherw ed with sample data Thecr tre Procedure #1: Procedure W2: Procedure name: Physical E Date: Today's date Practitioner: Dr. Irvine Procedure #3: Procedure name: Blood test Practitioner: Dr. Smith Procedure name: X-ray Date: Today's date : Date: Today's date Practitioner: Dr. Jamison 250.00 Charge: 500.00 Charge: 200.00 The program should display the patient's information, information about all three of the procedures, and the total charges of the three procedures. Name the source code files "Patient py". "Procedure.py", and "PatientCharges.py
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
