Question: Please provide a step by step solution for this particular problem below I have provided the file that produce an outputted code thanks. Patient Fees
Please provide a step by step solution for this particular problem below I have provided the file that produce an outputted code thanks.
Patient Fees
(1) This project should 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 that each student is
given about the same workload.
-The parameters and return types of each function and class member function
should be decided in advance.
-The program will be implemented as a multi-file program.
(2) You are to write a program that computes a patients bill for a hospital stay. The
different components of the program are
The PatientAccount class
The Surgery class
The Pharmacy class
The main program
-The PatientAccount class will be keep a total of the patients charges. It will also keep track of the number of days spent in the hospital. The group must decide on the hospitals 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 prices of at least five types of medication. It can update the charges variable of the PatientAccount class.
-The student who designs the main program will design a menu that allows the user to enter a type of surgery and a type of medication, and check the patient out the hospital. When the patient checks out, the total charges should be displayed.
/****************************** Team Name: Date File Name spc13-20.cpp Description ********************************/ // Chapter 13, Programming Challenge 20: Patient Fees #include
// Function prototypes int getSurgeryType(); int getMedicationType();
int main() {
return 0; }
//*********************************************** // Function getSurgeryType * // Displays a menu of surgery types and gets * // a selection from the user. The selection * // is returned. * //***********************************************
int getSurgeryType() { int choice;
return choice; }
//*********************************************** // Function getMedicationType * // Displays a menu of medication types and gets * // a selection from the user. The selection * // is returned. * //***********************************************
int getMedicationType() { int choice;
return choice; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
