Derive patient from the class person

Assignment Help Basic Computer Science
Reference no: EM131240242

Define two classes, Patient and Billing, whose objects are records for a clinic. Derive Patient from the class Person given in Listing 8.1. A Patient record has the patient's name (defined in the class Person) and identification number (use the type String). A Billing object will contain a Patient object and a Doctor object (from Practice Program 2). Give your classes a reasonable complement of constructors and accessor methods, and an equals method as well. First write a driver program to test all your methods, then write a test program that creates at least two patients, at least two doctors, and at least two Billing records and then displays the total income from the Billing records.

This programming project is on page 664 of your textbook (#6)

For this Programming Project, start with implementations of the Person, Student, and Undergraduate classes as depicted in Figure 8.4 and the polymorphism demo in Listing 8.6. Define the Employee, Faculty, and Staff classes as depicted in Figure 8.2. The Employee class should have instance variables to store the employee ID as an int and the employee's department as a String. The Faculty class should have an instance variable to store the faculty member's title (e.g. "Professor of Computer Science") as a String. The Staff class should have an instance variable to store the staff member's pay grade (a number from 1 to 20) as an int. Every class should have appropriate constructors, accessors, and mutators, along with a writeOutput method that outputs all of the instance variable values.

Modify the program in Listing 8.6 to include at least one Faculty object and at least one Staff object in addition to the Undergraduate and Student objects. Without modification to the for loop, the report should output the name, employee ID, department, and title for the Faculty objects, and the name, employee ID, department, and pay grade for the Staff objects.

Reference no: EM131240242

Questions Cloud

Study the impact of changing the epsalpha coefficient : You can set a value 1 to this coefficient and the learning coefficients will not decrease or set a value slightly more than 1, which will result in more "brutal" learning at every step. Describe the results.
Benefits of using wsus over the traditional imaging process : What are the benefits of using WSUS over the traditional imaging process?
How many neurons constitute a neighborhood : This number should depend on network size and the default setting. However, we suggest as an exercise a careful examination of its impact on network behavior. Note that larger neighborhood range numbers visibly slow the learning process.
Why might the use of equity method become more appropriate : What factor should be considered in determining whether equity-method reporting is appropriate?  Why might the use of the equity method become more appropriate as the percentage of ownership increases?
Derive patient from the class person : Define two classes, Patient and Billing, whose objects are records for a clinic. Derive Patient from the class Person given in Listing 8.1. A Patient record has the patient's name (defined in the class Person) and identification number (use the ty..
Method of direct proof to prove that statement : Suppose a and b are integers. If a | b, then a | (3b3 - b2 +5b). Use the method of direct proof to prove that statement.
Discuss the main disadvantages of financial regulations : Discuss the main advantages/disadvantages of financial regulations. What is the significance of the SEC and the FCM for the financial market?
Determine the pressure head in feet of water : A 4-in.-diameter pipe carries 300 gal/min of water at a pressure of 60 psi.
Explain the difference between correlation and causation : Distinguish between qualitative and quantitative research methods and give at least 2 examples for each method. In your examples, explain why the methods would be appropriate methods to use?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Application letter and resume

In this project, you will work with a fax cover sheet, an application letter, and a resume. To complete the project you will create a table, add text to a table, and format tables.

  Discuss why companies concentrate o revenue models

Discuss why companies concentrate o revenue models and the analysis of business processes instead of businesses models when they undertake electronic commerce initiatives

  Creating a new record in a table

In this project, you will review a database created for the computer science department of a local college. They would like your assistance in using Access to keep track of which employees have borrowed items from the department

  Create a method that will allow the user

Using the dancer world , create a method that will allow the user to select any three of the objects, and that will then cause the tallest of the three objects to spin. If more than one is the tallest, then the first of the tallest objects selecte..

  Area in the field of computer science in connection

Software engineering is an expanded area in the field of computer science in connection to it what is the purpose of Information hiding is to hide from user details?

  Customer from the first part of this discussion

Suppose that you learn that the customer from the first part of this discussion is unsure as to whether the database is going to run only during normal business hours or whether it needs to run 24 hours / 7 days a week. Assess the importance of kn..

  Research and pick one organization

Research and Pick ONE organization that can you conduct a risk assessment on. It can be any organization or company of choice. For the case study, you are pretty much creating your risk assessment report.  Case Study 1 is the first section of that re..

  Heptadeca class that encapsulates a heptadeca number

Write a Heptadeca class that encapsulates a Heptadeca number value. A Heptadeca number is one with 17 digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F, G. The methods the class has are: public void read(), public void set(String), public voi..

  Sql ddl statements

Write appropriate SQL DDL statements for declaring the LIBRARY relational database schema below. Specify the keys, the referential integrity, and the check constraints that may apply.

  Describe the federal laws

Describe the federal laws that address protecting an individual's PII.

  Specific needs in developing the communication plan

Utilize examples from your text or examples online that meet your specific needs in developing the Communication Plan for the Project that will substantively explain, and analyze the positive contributions to the success of the project.

  What degree is the student working towards

Copy and paste the work into your Key Assignment document and include screen shots of each step, describe what you did for each step and paste in the actual SQL text used to perform each step. Upload your document to the Submitted Tasks section.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd