Object Oriented Programming Homework 3 UAB Hospital System

$24.99 $18.99

Objectives: To practice types, objects, classes, inheritance and arrays in JAVA UAB Hospital System The goal of this assignment is to create a hospital employee tracking system for the UAB hospitals. You will create a Java project to automate the adding, deleting and displaying the list of UAB hospital employees. The set of classes define…

5/5 – (2 votes)

You’ll get a: zip file solution

 

Description

5/5 – (2 votes)

Objectives:

  • To practice types, objects, classes, inheritance and arrays in JAVA

UAB Hospital System

The goal of this assignment is to create a hospital employee tracking system for the UAB hospitals. You will create a Java project to automate the adding, deleting and displaying the list of UAB hospital employees. The set of classes define these employees of a hospital; hospital employee, doctor, nurse, administrator, surgeon, receptionist, it, and janitor.

Your code initially will read a list from txt file (uabEmployee.txt) create the corresponding objects. You will store the objects in java arrays and when you terminate the program you will save the updated list of the employees into same txt file.

Homework Instructions

  • You must use inheritance in creating those classes (Penalty = 20 points)

  • You can use arrays to store objects of the same Class, you can assume maximum size = 20 or one array to store all objects of all the Classes, you can assume maximum size = 100.

  • When you start the program, you will read the uabEmployee.txt file line by line. Each line will be containing information for one specific object. You will create these objects and store them in your object array (program memory)

  • You need to display a menu with the following options; Display the employee list, add employee, update the database, and an optional delete employee feature.

  • According to the user’s selection from the menu, your code should be able to

  1. add a hospital employee, doctor, nurse, administrator, surgeon, receptionist, IT professional, and janitor

  1. remove a hospital employee, doctor, nurse, administrator, surgeon, receptionist, IT professional, and janitor given the role and the blazerId

  1. display the hospital employees in the format given below

    1. update the database (save the updated object list into the same txt file)

  • Use the Constructors to automatically initialize the instance variables (they should be all declared as private, Penalty = 20 points)

  • Create the appropriate accessor and mutator methods for each private instance variables (setters/getters)

  • Add (overwrite) the methods to display

    1. Use toString method and super for printing the employee list

  • You will create the necessary attributes and methods for each class (check the sample input and output to decide the methods and attributes)

  • A sample uabEmployee.txt file;

E Lucy 1995

D John 1187 Gastro

N Julia 1254 4

A Jacob 4123 Business

A Catherine 4125 Management

R Alice 4101 Talking Y

J David 4789 Maintenance N

D Samuel 4891 Radiology

S Steve 4345 Brain Y

I Mark 1997 D

  • An expected output is;

Welcome to the UAB Employee System

The UAB Hospital System has the following employees:

Total Number of employees =10

Hospital Employees: 1

Name: Lucy BlazerId: 1995

Doctors: 2

Name: John BlazerId: 1187 Specialty: Gastro

Name: Samuel BlazerId: 4891 Specialty: Radiology

Surgeons: 1

Name: Steve BlazerId: 4345 Specialty: Brain Operating: Y

Nurses: 1

Name: Julia BlazerId:1254 Number of Patients: 4

Administrators: 2

Name: Jacob BlazerId: 4123 Department: Business

Name: Catherine BlazerId: 4125 Department: Management

Receptionist: 1

Name: Alice BlazerId: 4101 Department: Talking Answering: Y

Janitors: 1

Name: David BlazerId 4789 Department: Maintenance Sweeping: N

IT Team: 1

Name: Mark BlazerId:1997 Team: Developers

  • The explanation of the input file;

    1. E stands for Hospital Employee, Lucy for name and 1995 for the blazerId

    1. D stands for Doctor, John for name, 1187 for blazerId, and Gastro for the specialty

    1. N stands for Nurse, Julia for name, 1254 for blazerId, and 4 for number of patients

    1. A stands for Administrator, Jacob for name, 4123 for blazerId, and Business for department

    1. A stands for Administrator, Catherine for name, 4125 for blazerId, and Management for department

    1. R stands for Receptionist, Alice for name, 4101 for blazerId, Talking stands for department, and Y stands for answering

    1. J stands for Janitor, David for name, 4789 for blazerId, Maintenance for department, N for sweeping

    1. D stands for Doctor, Samuel for name, 4891 for blazerId, Radiology for department

    1. S stands for Surgeon, Steve for name, 4345 for blazerId, Brain for department, Y for operating.

    1. I stands for IT, Mark for name, 1997 for blazerId, D for the developer team (we will have 3 teams: D: developers, W:web services, N: networking)

  • You need to create an efficient user interface (not a Graphical User Interface, just use system.out class to print and get inputs). You should ask the necessary questions to add/remove employees

    1. For example; if the user wants to add a new Surgeon;

      • You need to ask, the name, blazerId, department and whether operating or not

    1. If the user wants to remove any employee

      • Ask the role and the blazerId (assume we have unique blazerId in the database)

  • Deliverables:

    1. A well written project report (.pdf)

        1. Explain your classes, attributes and methods. Explain how you implemented the Inheritance, and benefits of this implementation

        1. Put the screenshots of your outputs (the working version of your code)

    1. Project.zip file

        1. Submit the working version of the whole project file

        2. Do not submit only the classes

    1. Independence_completion_form

If any of the problem statements is unclear, use the Canvas discussion board to ask for clarifications.

Object Oriented Programming Homework 3 UAB Hospital System
$24.99 $18.99