You work for a doctor's office and are tasked with creating a program that allows a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Answer rating: 100% (QA)
Heres a Java implementation of the Patient and Bill classes along with a Demo class that demonstrate... View the full answer
Related Book For
Principles of Information Systems
ISBN: 978-1305971776
13th edition
Authors: Ralph Stair, George Reynolds
Posted Date:
Students also viewed these programming questions
-
a) Your roommate heard that you took Fundamentals of Finance with Prof. Hasler and that you learnt about the idea of building a nest egg for your retirement. Your roommate has a crazy idea and asks...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Suppose that a countrys annual growth rates were 5, 3, 4, 1, 2, 2, 3, 4, 6, and 3 in yearly sequence over a 10-year period. What was the countrys trend rate of growth over this period? Which set of...
-
Knowing that portions AC and BC of cable ACB must be equal, determine the shortest length of cable which can be used to support the load shown if the tension in the cable is not to exceed 725 N....
-
7. What is the characteristic feature of cyclic neutropenia? A) Neutrophil chemotaxis B) Very low neutrophil count for 3-6 days in a 21-day cycle C) Myeloperoxidase deficiency D) Defective neutrophil...
-
Describe how wrongful birth, wrongful life, and wrongful conception differ.
-
Macon Publishing House produces consumer magazines. The house and home division, which sells home-improvement and home-decorating magazines, has seen a 20% reduction in operating income over the past...
-
Consider a standard quadratic equation in the form ax + bx + c = 0 where a =1, b=6, c= 6. Rewrite it in complete square form (x + f) = g
-
The COVID-19 pandemic affected companies in the food industry in unique ways, particularly during 2020. Ruth's Hospitality Group (Ticker: RUTH) develops and operates fine dining restaurants under the...
-
Collaboration is encouraged, but copying is not allowed. A good rule of thumb is that talking about a problem is collaboration. Looking at someone else's paper and writing down what they have is...
-
Finding itself in great financial difficulty, Fidelity Mortgage Investors filed a voluntary bankruptcy petition in a New York bankruptcy court. When the petition was filed, the automatic suspension...
-
How does the interest rate corridor limit the movement of the federal funds rate?
-
One of the main ways of learning about social influence in organizations is to use questionnaires in which people are asked to describe the behaviors of their supervisors. If a consistent pattern...
-
Determine all bar forces and reactions for the truss in Figure P9.38. Given: area of bar \(B D=4\) in. \(^{2}\), all other bars \(=2\) in. \(^{2}\), and \(E=30,000\) kips/in. \({ }^{2}\). D 20' 15' B...
-
When a Florida court dismissed Nellie Cortezs voluntary bankruptcy petition, it ordered her not to file another petition under any chapter of the Bankruptcy Code for a period of twelve months. Two...
-
13) Which of the following is not true about deep learning? It is a subset of machine learning. It does not require a huge set of training data. It is also known as supervised learning. It learns...
-
Digital Fruit is financed solely by common stock and has outstanding 25 million shares with a market price of $10 a share. It now announces that it intends to issue $160 million of debt and to use...
-
What is the purpose of the computer bus?
-
Identify the names of the three primary frequency ranges used for wireless communications.
-
Identify some of the challenges associated with building an information system infrastructure to support this new service. Would cloud computing be an appropriate solution to address these...
-
Wakuluks approach to economic forecasting: A. is flexible and limited in complexity. B. can give a false sense of precision and provide false signals. C. imposes no consistency of analysis across...
-
Wakuluk is most likely to make significant adjustments to her estimate of the future growth trend for which of the following countries? A. Country Y only B. Country Z only C. Countries Y and Z Neshie...
-
Based on Exhibit 1, what capital market effect is Country Z most likely to experience in the short-term? A. Cyclical assets attract investors. B. Monetary policy becomes restrictive. C. The yield...
Study smarter with the SolutionInn App