Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You work for a doctor's office and are tasked with creating a program that allows a user to enter information about a series of

    

You work for a doctor's office and are tasked with creating a program that allows a user to enter information about a series of patient visits. Once all the patient visits have been entered, the program should display a Billing Report, the total number of bills generated and the total amount of finance charges accrued by all uninsured patients. Write a Patient class that knows the following: patient's name patient's address (can be a single field due to time constraints) whether the patient has medical insurance or not outstanding balance Write a Bill class that calculates the cost of the visit, the finance charge, the total amount owed and knows the following: doctor's hourly rate (currently $275.00 per hour) length in minutes of the doctor's visit patient being charged total number of bills created. This must be implemented by a variable that is shared among all instances of the Bill class. Use the following criteria in your calculations. The total amount owed is calculated by adding the cost of visit + outstanding balance + finance charge. The cost of the visit is calculated by multiplying the doctor's hourly rate by the length of the visit. If the patient doesn't have insurance, then a 35% discount off the cost of the visit is given. The outstanding balance is any monies owed before the current visit (the visit being entered). The finance charge is calculated on the outstanding balance - not on the cost of the current visit. Use the following table to calculate the finance charge. Outstanding Balance Finance Charge (insured patient) Finance Charge (uninsured patient) Under $100 10% of outstanding balance 15% of outstanding balance 20% of outstanding balance $100-$500 over $500 SO 5% of outstanding balance 10% of outstanding balance You must design a fully object-oriented program that avoids stale data using basic object-oriented concepts such as fields, getters, setters, constructors, and methods. In addition to using basic object-oriented concepts, your program must: demonstrate aggregation by implementing a "has a" relationship between the appropriate classes. include code that will prevent security holes. include methods that can be called implicitly and will return a String representing the state of an object.

Step by Step Solution

3.28 Rating (148 Votes )

There are 3 Steps involved in it

Step: 1

Heres a Java implementation of the Patient and Bill classes along with a Demo class that demonstrate... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Principles of Information Systems

Authors: Ralph Stair, George Reynolds

13th edition

1305971779, 978-1305971776

More Books

Students also viewed these Programming questions

Question

How do we do subnetting in IPv6?Explain with a suitable example.

Answered: 1 week ago

Question

Explain the guideline for job description.

Answered: 1 week ago

Question

What is job description ? State the uses of job description.

Answered: 1 week ago

Question

What are the objectives of job evaluation ?

Answered: 1 week ago

Question

Write a note on job design.

Answered: 1 week ago

Question

What is the purpose of the computer bus?

Answered: 1 week ago