Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I currently have this assignment running fine with Eclipse; however, I am requir

ID: 3641944 • Letter: I

Question

I currently have this assignment running fine with Eclipse; however, I am required to show my teacher the codes working on JGrasp.

http://www.box.com/s/a67e7d78d08cada034ca

Below is the prompt for my assignment:

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


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.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote