Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I have to create hospital employee tracking system for the SVV hospitals. You will create a Java project to automate the adding, deleting and displaying

I have to create hospital employee tracking system for the SVV 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 (svvEmployee.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.

My code suppose to read the svvEmployee.txt file line by line. Each line will be containing information for one specific object. I need to create these objects and store them in your object array. I 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, my code should be able to o add a hospital employee, doctor, nurse, administrator, surgeon, receptionist, IT professional, and janitor o remove a hospital employee, doctor, nurse, administrator, surgeon, receptionist, IT professional, and janitor given the role and the blazerId (type integer) o display the hospital employees in the format given below o update the database (save the updated object list into the same txt file) Use the Constructors to automatically initialize the instance variables. Add (overwrite) the methods to display o Use toString method and super for printing the employee list

I need to create an efficient user interface (not a Graphical User Interface, just use system.out class to print and get inputs). I should ask the necessary questions to add/remove employees o For example; if the user wants to add a new Surgeon; You need to ask, the name, blazerId, department and whether operating or not o If the user wants to remove any employee Ask the role and the blazerId (assume we have unique blazerId in the database)

i need to create the necessary attributes and methods for each class A svvEmployee.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 SVV Employee System The SVV 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

java Hospital Employee Name name BlazerId blazerId Define the Doctor class class Doctor extends Hosp... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Systems analysis and design

Authors: kenneth e. kendall, julie e. kendall

8th Edition

135094909, 013608916X, 9780135094907, 978-0136089162

Students also viewed these Programming questions

Question

What is it that a use case model describes?

Answered: 1 week ago

Question

Describe what a mashup is.

Answered: 1 week ago