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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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