Question: Write a Patient class that has fields for the following data: First name, middle name, and last name Address, city, state, and Zip code Phone
Write a Patient class that has fields for the following data:
First name, middle name, and last name
Address, city, state, and Zip code
Phone number
The Patient class should have constructors, accessors, and mutators that accept arguments wherever appropriate.
Next, write a class named Procedure that represents a medical procedure that has been performed on a patient. The Procedure class should have fields for the following data:
Name of the procedure
Date of the procedure
Name of the practitioner who performed the procedure
Charge for the procedure
The Procedure class should have constructors, accessors, and mutators that accept an arguments wherever appropriate.
Next, write a class containing the main method that creates an instance of the Patient class initialized with sample data you can provide the patient data in a constructor or mutators Then, create three instances of the Procedure class providing data for each field:
Procedure #:
Procedure name:
Date:
Practitioner:
Charge:
Procedure #:
Procedure name:
Date:
Practitioner:
Charge:
Procedure #:
Procedure name:
Date:
Practitioner:
Charge:
Total charge:
The program should display the patient's information, information about all three procedures, and the total charges of the procedures.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
