Thursday, August 8, 2013

Patient Class for the Wrightown Hospital C#

Download Solution from here
Create a patient class for the Wrightown Hospital Billing Department. Include a patient ID number, name, age, and amount due to the hospital. Include properties and any other methods you need. Override the ToString() method to return all the details for a patient. Write an application that prompts the user for data for five Patients. Sort them in patient ID number Oder and display them all, including a total amount owed.

Save the program as PatientDemo.es

Using the patient as a base, derive an InsuredPatient class. An insuredPatient contains all the data of a patient, plus fields to hold an insurance company name, and the percentage of the hospital bill the insurance company will pay. Insurance payment are Based on the following table:

Insurance Company Portion of bill paid by insurance (%)
Wrights town mutual 80
Red umbrella 60
All other companies. 25

Create an array of five InsuredPatient object. Create a program that justifies the following:
• prompt the user for all the patient
data, plus the name of insurance company; the insurance company set accessor determines the percentage paid.
• override the patient class ToString() method to include the name of the insurance company, the percent paid, and the amount due after the insurance has been applied to the bill.
•Sort all records in ID number order and display them with a total amount due from all insured patients.

Save the program as patientDemo2.cs

Write application that uses an extension method for the patient class. The method computers and returns a patient's quarterly insurance payment (one-fourth of the annual premium). The application should allow the user to enter data for five Patients and then display all Patient data for each, including the quarterly payment.

Save the program as PatientDemo.cs

Embed the program in a Microsoft word document.

Cite any sources in APA format on a separate page.

No comments:

Post a Comment