Question: In java In this project, you will design various classes and write a program to computerize the billing system of a hospital. a) Design the

In javaIn java In this project, you will design various classes and write

In this project, you will design various classes and write a program to computerize the billing system of a hospital. a) Design the class Person. Two common attributes of a person are the person's first name and last name. The typical operations on a person's name are to set the name and print the naime b) Design the class Doctor, inherited from the class Person with an additional data member to store a doctor's specialty. Add appropriate constructors and methods to initialize access, and manipulate the data members. c) Design the class Bill with data members to store a patient's ID and the patient's hospital charges such as pharmacy charges for medicine, the doctor's fee, and the room charges. Add appropriate constructors and methods to initialize, access, and manipulate the data members. d) design the class Date. Three common attributes of a date are month, day number, and year. Some of the operations that need to be performed on a date are to set the date and to print the date e) Design the class Patient, inherited from the class Person with additional data members to store a patient's ID, age, date of birth, attending physician's name, the date when the patient was admitted in the hospital, and the date when the patient was discharged from the hospital. (Use the class Date to store the date of birth, admit date, discharge date, and the class Doctor to store the attending physician's name.) Add appropriate constructors and methods to initialize, access, and manipulate the data members. f Write a program to test your classes In this project, you will design various classes and write a program to computerize the billing system of a hospital. a) Design the class Person. Two common attributes of a person are the person's first name and last name. The typical operations on a person's name are to set the name and print the naime b) Design the class Doctor, inherited from the class Person with an additional data member to store a doctor's specialty. Add appropriate constructors and methods to initialize access, and manipulate the data members. c) Design the class Bill with data members to store a patient's ID and the patient's hospital charges such as pharmacy charges for medicine, the doctor's fee, and the room charges. Add appropriate constructors and methods to initialize, access, and manipulate the data members. d) design the class Date. Three common attributes of a date are month, day number, and year. Some of the operations that need to be performed on a date are to set the date and to print the date e) Design the class Patient, inherited from the class Person with additional data members to store a patient's ID, age, date of birth, attending physician's name, the date when the patient was admitted in the hospital, and the date when the patient was discharged from the hospital. (Use the class Date to store the date of birth, admit date, discharge date, and the class Doctor to store the attending physician's name.) Add appropriate constructors and methods to initialize, access, and manipulate the data members. f Write a program to test your classes

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!