How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask ATLPROG Your Own Question

ATLPROG, Computer Software Engineer
Category: Programming
Satisfied Customers: 7677
Experience:  MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
Type Your Programming Question Here...
ATLPROG is online now
A new question is answered every 9 seconds

The ABC Community Hospital needs a program to compute and

Customer Question

The ABC Community Hospital needs a program to compute and print the billing statement for each of its patient. The following table shows the fees for the various services:
The ABC Community Hospital
Room Charges per Day:
Private $550.0
Semi-private $350.0
Ward $105.00
Telephone $4.50
Television $7.50
Medication $275.00
Write a class called Hospital that accepts the following indicators:
• The patient’s name (First name and last name)
• An integer representing the number of days the patient is in the hospital.
• A single character representing the type of room the patient chooses. Room type (P/p= private, S/s means semi-private, and W/w means ward)
As part of the billing, note the following:
• If a patient chooses private room, then the cost for medication is twice what is shown on the billing chart; if the patient chooses semi-private, then the cost for medication is what is shown on the billing chart; and if the patient chooses ward, then the billing cost is half what is shown on the billing chart.
• A patient who chooses private room pays for television service and telephone service; a patient who chooses semi-private room pays for television service, and a patient who chooses the ward gets television and telephone services free.
A typical output is as follows
The ABC Community Hospital
Patient Billing Statement
Patient: ***** *****
Number of days: 5
Type of room: Private
Room charge $2,750.00
Telephone 0.00
Television 0.00
Medication $550.00
Total amount due $3,312.00
(Note: you are required to use the switch statement to determine the room type)
Submitted: 3 months ago.
Category: Programming
Expert:  LogicPro replied 3 months ago.



zip all files. Upload the file to and post download link here

what is the deadline?