Save the program as PatientDemo.cs.
Using the Patient class as a base, derive an Insured Patient class. An Insured Patient 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 payments are based on the following table:
Insurance Company
Portion of bill paid by insurance (%)
Wrightstown Mutual 80 Red Umbrella 60 All other companies 25
Create an array of five Insured Patient objects. Create a program that justifies the following: •Prompts the user for all the patient data, plus the name of the insurance company; the insurance company set accessor determines the percentage paid. •Overrides the parent 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. •Sorts all the records in ID number order and displays them with a total amount due from all insured patients.
Save the program as PatientDemo2.cs.
Write an application that uses an extension method for the Patient class. The method computes 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 the Patient data for each, including the quarterly payment.
Save the program as PatientDemo3.cs.
Embed the programs in a Microsoft Word document.
Cite any sources in APA format on a separate page.
0 comments:
Post a Comment