UAB SystemObjectives:«To practice types, objects, classes, inheritance and arrays in JAVAUAB SystemThe goal of this assignment is to create a student and employee tracking system for the...

Homework


UAB System Objectives: «To practice types, objects, classes, inheritance and arrays in JAVA UAB System The goal of this assignment is to create a student and employee tracking system for the UAB hospitals. You will create a Java project to automate the adding, deleting and displaying the list of UAB students and employees. The set of classes define these people; students, faculty, staff, IT, advisors 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 © add a student, faculty, IT professional, advisor, and staff o remove a a student, faculty, IT professional, advisor, and staff given the role and the blazerld (optional) o display the all UAB People 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 (they should be all declared as private, Penalty = 20 points) e Create the appropriate accessor and mutator methods for each private instance variables (setters/getters) * Add (overwrite) the methods to display o Use toString method and super for printing the UAB people 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.xt file; F Mahmut Unan unan CS 4 F John Johnstone jkj CS 3 S Jane Smith jsmith Junior Math 3.68 T Angie Boyer angboyer Secretary Math A Lisa James jlisa2 Math Graduate S John Doe jdoe Sophomore CS 4.00 T Rick Stein rickstein Admin Biology 1 Courtney Terrell terrellc Developer 1 Stanley Harvell stanley52 Networking T Nelson Miles nmiles3 Registrar CS F Jessica Hendricks jhend Math 2 S Sarah Vega sarahv Senior Biology 3.87 A Anthony Shannon ashan27 Biology Undergraduate A Rebecca Pendergrass rebecca25 CS Graduate 1 Susan Stack susanstack Developer S Mary Walker mwalkerr3 Freshman CS 4.00 © An expected output is; Welcome to the UAB Employee System The UAB Employee System has the following employees: Total Number of employees =16 Faculty: 3 Name: Mahmut Unan Blazerld: unan Department: CS Courses: 4 Name: John Johnstone Blazerld: jkj Department: CS Courses: 3 Name: Jessica Hendricks Blazerld: jhend Department: Math Courses: 2 Students: 4 Name: Jane Smith Blazerld: jsmith Level: Junior Major: Math GPA: 3.68 Name: John Doe Blazerld: jdoe Level: Sophmore Major: CS GPA: 4.00 Name: Sarah Vega Blazerld: sarahv Level: Senior Major: Biology GPA: 3.87 Name: Mary Walker Blazerld: mwalkerr3 Level: Freshman Major: CS GPA: 4.00 Staff: 3 Name: Angie Boyer Blazerld: angboyer Role: Secretary Department: Math Name: Rick Stein Blazerld: rickstein Role: Admin Department: Biology Name: Nelson Miles Blazerld: nmiles3 Role: Registrar Department: CS Advisors: 3 Name: Lisa James Blazerld:jlisa Department: Math Group: Graduate Name: Anthony Shannon Blazerld:ashan27 Department: Biology Group: Undergraduate Name: Rebecca Pendergrass Blazerld:rebecca23 Department: CS Group: Graduate IT Professionals: 3 Name: Courtney Terrell Blazerld:terrellc Team: Developer Name: Stanley Harvell Blazerld:stanley52 Team: Networking Name: Susan Stack Blazerld:susanstack Team: Developer * 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 o For example; if the user wants to add a new Student; * You need to ask, first name, last name, blazerld, level, major and gpa o If the user wants to remove any employee = Ask the role and the blazerld (assume we have unique blazerld in the database) * Assumptions: © We have only faculty (F), student (S), It professional (I), advisor (A), and staff (T) classes o We only have firstname and lastname for every UAB Person (don’t worry about the middle names)
Mar 14, 2023
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here