Write a class named Patient that has member variables for first name, middle name, last name, phone number, name and phone number of emergency contact. The Patient class should have a constructor that accepts and argument for each member variable. The Patient class should also have accessor and mutator functions for each member variable.
Write a class named Patient that has member variables for first name, middle name, last name, phone number, name and phone number of emergency contact. The Patient class should have a constructor that accepts and argument for each member variable. The Patient class should also have accessor and mutator functions for each member variable.
Write a class named Procedure that has member variables for name of procedure, date of procedure, name of physician, and charges for the procedure. This Procedure class represents a medical procedure that is performed on a patient. The Procedure class should have a constructor that accepts an argument for each member variable. The Procedure class should also have accessor and mutator functions for each member variable.
Then write a program that creates an instance of the Patient class initialized with sample data that is entered by the user.
Then, create an instance of the Procedure class for each procedure that is being performed on the patient. There can be multiple procedures that can be performed on each patient. At the end of the data entry for a patient, display the patient’s information, information about the procedure/s and the total charges for the patient.
I am studying in java class. So I need to write the program by java. In the photos are how my professor show me created class Patient and Procedure . Thanks
Trending now
This is a popular solution!
Step by step
Solved in 2 steps