Question: Java Programming Write a class named Patient that has the following fields: First name, middle name and last name Street address, city, state and zip
Write a class named Patient that has the following fields: First name, middle name and last name Street address, city, state and zip code Phone number Name and phone number of an emergency contact The Patient class should have a constructor that accepts an argument for each field. The Patient class should also have accessor and mutator methods for each field. 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 doctor who performed the procedure Charge for the procedure Then Procedure class should have a constructor that accepts an argument for each field. The Procedure class should also have accessor and matador methods for each field Finally, write an application that creates one instance of the Patient class and three instances of the Procedure class. The program should display the patient's information about all three of the procedures and the total charges for each of the procedures. Use the sample data on page 191 in the text book
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
