CS 222 01Program Assignment Chapter 10 Old Book20 PointsName _____________________________________Due:Wednesday, March 1, 2022Write a class named Patient that has attributes for the...

help


CS 222 01 Program Assignment Chapter 10 Old Book 20 Points Name _____________________________________ Due:Wednesday, March 1, 2022 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 · Name and phone number of emergency contact The Patient class’s __init__ method should accept an argument for each attribute. The Patient class should have accessor and mutator methods for each attribute and an __str__ method to display the attribute data. 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 · Date of the procedure · Name of the practitioner who performed the procedure · Charges for the procedure The Procedure class’s __init__ method should accept an argument for each attribute. The Procedure’s class should also have accessor and mutator methods for each attribute as well as an __str__ method to display the attribute data. 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: Procedure #1Procedure #2Procedure #3 Procedure name: Physical ExamProcedure name: X-rayProcedure name: Blood test Date: Today’s dateDate: Today’s dateDate: Today’s date Practitioner: Dr. IrvinePractitioner: Dr. JamisonPractitioner: Dr. Smith Charge: 250.00Charge: 500.00Charge: 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. Add the following comments to the beginning of the program. Name:Your Name Class and Section:CS 222 01 Assignment:Program Assignment Chapter 10 old book Due Date:See above Date Turned in: Program Description:You write a short description of what the program will do When you complete the program, do the following. 1. Create a folder with the following name: ProgramAssignmentCH10OB 2. Copy your programs to this folder 3. Copy the folder to your folder in the I:\kopp\inbox\CS 222 01 folder
Feb 28, 2023
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here