Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write the program in Java 13. In this exercise, you will design various classes and write a program to computerize the billing system of a

Write the program in Java

image text in transcribed

13. In this exercise, you will design various classes and write a program to computerize the billing system of a hospital. a. Design the class Doctor, inherited from the class Person, defined in Chapter 8, with an additional data member to store a doctor's specialty. Add appropriate constructors and methods to initialize, access and manipulate the data members. 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 b. c. Design the class Patient, inherited firom the class Person, defined in Chapter 8, with additional data members to store a patient's ID, age, date of birth, attendingphysician's name, the date when the patient was admitted in the hospital, and the date when the patient was discharged from the bospital. (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 appropnate constructors and methods to imitalize, access, and manipulate the data members Write a program to test your classes

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions