Project 2 statement ANSWER IN SINGLE FILE JAVA Please read this entire statement carefully before you start doing anything… This project involves implementing a simple university personnel management program. The program contains three kinds of objects: Staff, student and faculty. For each object, the program stores relevant information such as university ID, name, etc. Different information is stored depending on the type of the object. For example, a student has a GPA, a faculty has a title and department (professor, mathematics).

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Project 2 statement

ANSWER IN SINGLE FILE JAVA
Please read this entire statement carefully before you start doing anything…

This project involves implementing a simple university personnel management program. The program contains three kinds of objects: Staff, student and faculty. For each object, the program stores relevant information such as university ID, name, etc. Different information is stored depending on the type of the object. For example, a student has a GPA, a faculty has a title and department (professor, mathematics).

For each of any class data member, your program must include the getters and the setters, and each class must include at least two constructors. The goal of this Project is to demonstrate the use of inheritance, abstract classes, abstract methods, and method overriding.

For a student, we need a:

  • full name
  • id
  • gpa
  • Number of credit hours currently taken

For a faculty, we need a:

  • full name
  • id
  • department (mathematics, engineering or english)
  • Rank (professor or adjunct)

For a staff, we need a:

  • full name
  • id
  • department (mathematics, engineering or english)
  • status (part time or full time)

Students in this college pay $236.45 per credit hour in addition to a $52 administrative fee. Your code should generate a tuition invoice ( a method within the class Student). Note that students get a 25% off total payment if their gpa is greater or equal to 3.85.

Both classes Student and Employee inherit from the abstract class Person. The abstract class Person has what is common to a Student and an Employee (Faculty or Staff). The class Person must include the signature: public abstract void print();

The abstract method print is overridden to print the fee invoice for a student and to print the information for  a faculty or a staff member. It is left to you (the programmer) to come out with other abstract methods if you see fit(this is optional).

 

The class Employee should also be abstract, and it is supposed to include what is common to a staff and a faculty.

Test your code with ONE array of size 100 of type Person (It must be an array, not an arraylist, linked list , hash map or anything else…). The sample run below should give you a clear idea about how your code should run. The user’s entry is marked in bold so you can tell what your code should display to the screen and what the user enters.

Please note well that:

  • Your code should run exactly as shown on the sample run below.
  • When asked to enter the faulty’s department, matheMatics and MathematiCs are considered to be the same, and your program should display Mathematics if faculty information is to be displayed to the screen. However, if the user enters Mathematics department, then this is an invalid entry.  Consider theses departments only: Mathematics, Engineering and Sciences. As for the rank of a faculty, consider theses ranks only: Professor and Adjunct.

The university ID has no required form so you may choose to enter anything to be the ID.

Sample Run: (Below is how your code should run)

Welcome to my Personal Management Program

Choose one of the options:

  • Enter the information a faculty
  • Enter the information of a student
  • Print tuition invoice for a student
  • Print faculty information
  • Enter the information of a staff member
  • Print the information of a staff member
  • Exit Program

Enter your selection: 2

     Enter the student info:

                Name of Student: Julia Alvarez

                ID: ju1254

                Gpa: 3.26

                Credit hours: 7

     Student added!

 

  • Enter the information a faculty
  • Enter the information of a student
  • Print tuition invoice for a student
  • Print faculty information
  • Enter the information of a staff member
  • Print the information of a staff member
  • Exit Program

     Student added!

  • Enter the information of the faculty
  • Enter the information of the two students
  • Print tuition invoice
  • Print faculty information
  • Enter the information of the staff member
  • Print the information of the staff member
  • Exit Program

Enter your selection: A

Invalid entry- please try again

 

  1. Enter the information of a faculty
  2. Enter the information of a students
  3. Print tuition invoice
  4. Print faculty information
  5. Enter the information of a staff member
  6. Print the information of a staff member
  7. Exit Program

Enter your selection: 1

     Enter the faculty info:

                Name of the faculty:  John Miller

                ID: jo7894

 

Rank: Instructor

                      “Instructor” is invalid

                Rank: Assistant Professor

                      “Assistant Professor” is invalid

 

                Rank: Professor            

Department: Engineering

             Faculty added!

 

Your code should implement the following inheritance hierarchy:
Person
Student
Employee
Faculty
Staff
Both classes Student and Employee inherit from the abstract class Person. The abstract class Person has what is common to a Student and an
Employee (Faculty or Staff). The class Person must include the signature: public abstract void print();
The abstract method print is overridden to print the fee invoice for a student and to print the information for a faculty or a staff member. It is left to
you (the programmer) to come out with other abstract methods if you see fit(this is optional).
The class Employee should also be abstract, and it is supposed to include what is common to a staff and a faculty.
Test your code with ONE array of size 100 of type Person (It must be an array, not an arraylist, linked list, hash map or anything else.). The sample run below
should give you a clear idea about how your code should run. The user's entry is marked in bold so you can tell what your code should display to the screen and
what the user enters.
Transcribed Image Text:Your code should implement the following inheritance hierarchy: Person Student Employee Faculty Staff Both classes Student and Employee inherit from the abstract class Person. The abstract class Person has what is common to a Student and an Employee (Faculty or Staff). The class Person must include the signature: public abstract void print(); The abstract method print is overridden to print the fee invoice for a student and to print the information for a faculty or a staff member. It is left to you (the programmer) to come out with other abstract methods if you see fit(this is optional). The class Employee should also be abstract, and it is supposed to include what is common to a staff and a faculty. Test your code with ONE array of size 100 of type Person (It must be an array, not an arraylist, linked list, hash map or anything else.). The sample run below should give you a clear idea about how your code should run. The user's entry is marked in bold so you can tell what your code should display to the screen and what the user enters.
1.
Enter the information a faculty
2.
Enter information of a students
3.
Print tuition invoice
4.
Print faculty information
5.
Enter the information of a staff member
6.
Print the information of a staff member
7.
Exit Program
Enter your selection: 6
Enter the Staff's id: ja6980
Jamal Kareem
ja6980
Sciences Department, Full Time
1.
Enter the information a faculty
2.
Enter information of a students
3.
Print tuition invoice
4.
Print faculty information
5.
Enter the information of a staff member
6.
Print the information of a staff member
7.
Exit Program
Enter your selection: 7
Goodbye!
Transcribed Image Text:1. Enter the information a faculty 2. Enter information of a students 3. Print tuition invoice 4. Print faculty information 5. Enter the information of a staff member 6. Print the information of a staff member 7. Exit Program Enter your selection: 6 Enter the Staff's id: ja6980 Jamal Kareem ja6980 Sciences Department, Full Time 1. Enter the information a faculty 2. Enter information of a students 3. Print tuition invoice 4. Print faculty information 5. Enter the information of a staff member 6. Print the information of a staff member 7. Exit Program Enter your selection: 7 Goodbye!
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps with 4 images

Blurred answer
Knowledge Booster
Study of Characters
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education