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

  Java test program

Write a Java test program, all your code should be in the main method, that determines what type of organization is indicated by a web address. Your program should allow the user to enter a web address

  Creation of classes and objects

Introduction of programming using the Java language. The foundation of object-oriented programming will be th topic here. This will include creation of classes and objects, object responsibilities and characteristics, and UML class diagrams

  Integers as a parameter and returns the number

Write a method maxOccurrences that accepts a list of integers as a parameter and returns the number the number of times the most frequently occurring integer

  Design and implement a basic graphical user interface

Design and implement a basic graphical user interface (GUI) program for recording information about a family tree -

  Write a method heading for each method

Write a method heading for each method, write preconditions and postconditions for each method.

  What is an example of a javascript framework

What is an example of a JavaScript(r) framework? In the framework you have described, what is an example of an application that would work well on the site you are building for the class? What is the purpose of the application and how will it enha..

  Graphical application for computing statistics

Write a graphical application for computing statistics of a data set. Supply a text field and button for adding floating-point values, and display the current minimum, maximum, and average in a label.

  Write a java loop

write a java loop ( of your choice ) that produces exactly the following output to the screen: 2-4-6-8-

  Design the appropriate accessor and mutator methods

Design an Employee class that has fields for the following pieces of information: Employee Name Employee Number Next, design a class named ProductionWorker that extends the Employee class.

  Organizational report

You have been hired as the CIO of a large multinational Internet advertising company. The president of the company is entertaining a major new software development project to keep track of advertising revenues.

  Initialized the array of words by an assignment statement.

modify the following program . The program from Lab 4 initialized the array of words by an assignment statement.

  Implement a set as a new class that is derived

A set is like a bag, except that a set does not allow multiple copies of any element. If you try to insert a new copy of an item that is already present in a set, then the set simply remains unchanged.

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