Problem

This program should be designed and written by a team of students. Here are some suggest...

This program should be designed and written by a team of students. Here are some suggestions:

One or more students may work on a single class.

The requirements of the program should be analyzed so each student is given about the same workload.

The names, parameters, and return types of each function and class member function should be decided in advance.

The program will be best implemented as a multifile program.

Write a program that computes a patient’s bill for a hospital stay. The different components of the program are

The PatientAccount class will keep a total of the patient’s charges. It will also keep track of the number of days spent in the hospital. The group must decide on the hospital’s daily rate.

The Surgery class will have stored within it the charges for at least five types of surgery. It can update the charges variable of the PatientAccount class.

The Pharmacy class will have stored within it the price of at least five types of medication. It can update the charges variable of the PatientAccount class.

The main program.

The student who designs the main program will design a menu that allows the user to enter a type of surgery, enter one or more types of medication, and check the patient out of the hospital. When the patient checks out, the total charges should be displayed.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT