**Community Hospital** needs a program to compute and print the total hospital charges for each of its patients.
Charges are as follow:
A) Room charges: private room,$125;semi-private,$100;
or ward $50.
B) Telephone charge;$[url removed, login to view]
1. The a class called hospital that accepts:
- The number of days spent in the hospital
- The room type represented by one of the letters (P/P or S/s, or W/w)
_ One of the following letters (Y/y or N/n) representing the telephone option (per day)
2. The class must includes methods to compute the charges and to return the charges.
Also, Write a test class that will use the while loop for 5 patients. Use the JOptionPane to gather the data for each patient.
This program has to be done in JCreator