Create class called hospital and add all relevant attributes

Assignment Help JAVA Programming
Reference no: EM13852593

PART 1:

1. Create a class called Hospital and add all the relevant attributes for the created class.

2. Create a User's super class that contains all the properties common to the all the users that will be using the Hospital patient billing system.

3. Create the three different users classes for users objects that could be added to the hospital. One of the classes is Patient.

4. Inherit from the User superclass and overload the constructors in the child classes (e.g. Patient etc.)

5. Create a patient and Doctors arrays in the Hospital class (Aggregation relationship)

6. In the User class, create methods to add, count and remove users from the hospital. (Abstraction)

7. Create a class containing the main method and call it Driver in which you create two hospital objects.

 8. Use the add method(s) of the User class to add users created by the user from input (using abstraction) (Hint: to add a user the user have to type the user's name from the keyboard)

9. Create an interface called Bill to declare all the methods that are necessary to calculate the Registration fee needed to be paid by patient, Total bill after treatment and pending bill to be paid by a patient before the patient is discharged. Implement the Bill interface in the class called Hospital_Bills.

10. Modify the Hospital class such that it takes advantage of the inheritance provided in the preceding steps through polymorphism.

PART II

The source code will be marked according to the following indicators.

1. Good modular design within same program file.

2. Good modular design of the project (Classes in different program files).

3. Good comments.

4. Ability to explain a portion of the code as may be required by the evaluator.

5. Working code.

PART III

Extras

The features described in this section are not mandatory but will fetch additional marks. Only one extra feature can be assessed, therefore if you implement more than one extra feature you will have to decide which one is to be assessed. Should you implement an extra feature then ensure that you can explain it.

1. Exception Handling.
2. Storing data to and reading data from a file (e.g. text file).
3. The use of GUI in your application.

Reference no: EM13852593

Questions Cloud

What are the benefits or strengths of christian belief? : What are the benefits or strengths of Christian belief? What is troublesome or confusing about Christianity?
What are the strengths and weaknesses of each : Utilitarian, deontological, and virtue-based approaches to ethics. What are the strengths and weaknesses of each?
Externalities and utility-unregulated market : A competitive, unregulated market would. Externalities. Utility is the
What is individualized instruction in reading? : What is individualized instruction in reading?
Create class called hospital and add all relevant attributes : Create a class called Hospital and add all the relevant attributes for the created class - Create a User's super class that contains all the properties common to the all the users that will be using the Hospital patient billing system.
Should wages and salaries be indexed to economic performance : In this discussion, you will explain the role of the business cycle in government and private sector decisions. Data on GDP and economic growth are considered lagging indicators because they report information on what is already known. How reliable a..
Impact of employment and unemployment in free market economy : In this question, you will explain the impact of employment and unemployment in a free market economy. The country of France legislated the maximum length of a workweek. Every election season, the Affordable Care Act commonly known as OBAMACARE, beco..
Consider homogenous good market with market demand curve : Consider a homogenous good market with the following market demand curve: Two firms produce output at constant marginal cost = 10. Derive the Nash equilibrium outcome in terms of prices, outputs and the profits of the two firms under the following al..
What will you argue and will you succeed : The defense has appealed, and you are the defense lawyer making the argument to the appellate court on Brazen's behalf. What will you argue and will you succeed

Reviews

Write a Review

JAVA Programming Questions & Answers

  Question hierarchy of section

Add a class AnyCorrectChoiceQuestion to the question hierarchy of Section 9.1 that allows multiple correct choices. The respondent should provide any one of the cor- rect choices. The answer string should contain all of the correct choices, separa..

  Accepts a string as its parameter and returns an integer

Write a method in java named secondHalfLetters that accepts a string as its parameter and returns an integer representing how many of letters in the string come from the second half of the alphabet

  Programming principles please help me doing my assignment i

please help me doing my assignment i have attached my assignment requirement document refer it and send me the solution

  Explain we have to make a project in java

We have to make a project in java . This is a small deskstop application no specifications given so far . The CD store has CD games and music we can rent a cd or we can buy . This is all we need to develop.

  Populate a one-dimensional array

Populate a one-dimensional array with the following grades in this order: 93, 61, 72, 45, 84, 51, 70, 83, 96, and 66. Use a loop to call a method from main() that adds

  Concept of operator overloading

This lab is to introduce students to the concept of operator overloading as member functions of a class. This will be done in the context of creating a class that will perform four basic mathematical operations on complex numbers

  Design a program in pseudocode

Design a program in pseudocode that solves this problem. You are required to generate only the pseudocode - No charting or analysis section is required, but you may have to incorporate the bubble sort algorithm to determine the minimum and maximum..

  Determine the purpose of using javascriptr on a website

write a 200- to 300-word short-answer response to the followingwhat is the purpose of using javascriptr on a website?

  Setting up the form page

Download and save the attached comment CGI mailer script form-mail2.pl to your server's cgi-bin directory, and change the permissions on the script to make it executable (not writable).

  Run the code

Run the following code, Explain the output aYer you let it run 20 seconds, 5 minutes, 10 minutes.

  Create a java program to calculate the circumference

Create a Java program based on the geometric shapes. The program should begin by prompting you for the shape you want to calculate the circumference.

  Short java paper

Using the simplified OOD methodology:

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