Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c++ please Write a program that computes a patien's bill for a hospital stay. The different components of the program are - The PatientAccount class,
c++ please
Write a program that computes a patien's bill for a hospital stay. The different components of the program are - The PatientAccount class, which 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, which will have stored within it the charges for at least five types of surgery. It can update the charges variable of the class. - The Pharmacy class, which 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 client program (i.e, the main program). Divide the work so that each student is given about the same workload. For example, one or two students might design the client program, while other individuals or pairs design each class it will use. Then, before beginning to write any code, the group should decide on function names, parameters, and return types so all the completed modules will properly work together when they are combined into the final program. The main program should include 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
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started