Write a Program that computes a patient\'s bill for hospital stay. The different
ID: 3641749 • Letter: W
Question
Write a Program that computes a patient's bill for 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 a least five types of the 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 check out, the total charges should be displayed.
The program needs to be in GUI.
Notes: (please read very carefully)
1. The requirements of the program should be analyzed so each student is given about the same work load.
2. The name, parameters, and return type of each function and class member function should be decided in advance.
3. comment your program.
4. Use meaningful prompts
5. Provide a brief description of the problem being solved
This is what I have so far:
http://www.box.com/s/a67e7d78d08cada034ca
Thank you very much in advance!!!
Explanation / Answer
Add/Edit these two lines in DoctorFlatFileDataAcces.java
java.io.InputStream stream = getClass().getResourceAsStream("doctorStore.txt");
Scanner file = new Scanner(stream);
Movie all *.txt files to DAL folder... in teh above case doctorStore.txt.
From the menu select Build and the select run.. It should run.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.