support@unifiedpapers.com

object-orient-prog-c-visual-studio

Create an application that calculates the total cost of a hospital stay.The daily base charge is $350.The hospital also charges for medication, surgical fees, lab fees and physical rehab.The application should accept the following input:

  • Patient’s Name
  • Patient’s Address
  • The number of days spent in the hospital
  • The amount of medication charges
  • The amount of surgical charges
  • The amount of lab fees
  • The amount of physical rehabilitation charges

Create and use the following value-returning methods in the application:

  • calcStayCharges – Calculates and returns the base charges for the hospital stay.This is computed as $350 times the number of in the hospital.
  • calcMiscCharges – Calculates and returns the total of the medication, surgical, lab and physical rehabilitation charges.
  • calcTotalCharges – Calculates and returns the total charges.

On the form, display the total amount of the charges.

In a file, display the output in an invoice format.An example is shown on the back of this document.

Add the following comments at the top of the code page.

Name

Class and Section (CS 165 02)

Assignment (Program 06 Chapter 06)

Due Date (see above)

Description of the Program

In order to receive credit for this assignment, do the following:

  • Print out a copy of the source code and attach this sheet to the front of it and turn it in
  • Create a folder with the following name: Assign06Chapter 06
  • Copy your project to this folder
  • Copy the folder to the following location: I:koppinboxCS 165 01your name where your name is a folder located in I:koppinboxCS 165 01.

Name:Frank Smith

Address:111 Main St. Kansas City, MO 64133

Days in Hospital:3

Base Charges:$1,050.00

Misc Charges:$2,458.95

Total Charges:$3,508.95

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now

Hi there! Click one of our representatives below and we will get back to you as soon as possible.

Chat with us on WhatsApp