Sample Output: Press E for Employee, F for Faculty, or s for Student: e Type employee's name, contact number, salary, and department. Press Enter after every input. Mairo Berlin P. Reyes 09198765432...


Sample Output:<br>Press E for Employee, F for Faculty, or s for Student: e<br>Type employee's name, contact number, salary, and department.<br>Press Enter after every input.<br>Mairo Berlin P. Reyes<br>09198765432<br>24500<br>Registrar<br>Name: Mairo Berlin P. Reyes<br>Contact Number: 09198765432<br>Salary: 24500.0<br>Department: Registrar<br>

Extracted text: Sample Output: Press E for Employee, F for Faculty, or s for Student: e Type employee's name, contact number, salary, and department. Press Enter after every input. Mairo Berlin P. Reyes 09198765432 24500 Registrar Name: Mairo Berlin P. Reyes Contact Number: 09198765432 Salary: 24500.0 Department: Registrar
Create a program that exhibits inheritance.<br>Software Requirements:<br>Latest version of NetBeans IDE<br>Java Development Kit (JDK) 8<br>Procedure:<br>1. Write a simple information system that will store and display the complete information of a student,<br>faculty, or employee.<br>2. Create four (4) no-modifier classes named Person, Student, Faculty, and Employee.<br>3. Create a public class named CollegeList. This class shall contain the main method.<br>4. Refer to the UML Class Diagram for the names of the variables and methods. The (-) symbol<br>represents private variables, while (+) represents public method. This should be the sequence of<br>the program upon execution:<br>a. Prompt the user to select among Employee, Faculty, or Student, by pressing E, F, or S.<br>b. Ask the user to type the name and contact number.<br>c. For Employee, ask the user to type the employee's monthly salary and the department where<br>he/she belongs to (Ex. Registrar). Then, display name, contact number, salary, and<br>department.<br>For Faculty, ask the user to press Y if the faculty member is regular/tenured or N if not. Then,<br>display name, contact number, salary, department, and status.<br>For Student, ask the user to type the student's enrolled program (Ex. BSIT, BSTM) and<br>his/her year level (integers 1 to 4). Then, display name, contact number, program, and year<br>level.<br>Person<br>name: String<br>contactNum: String<br>+ setName(String n): void<br>+ getName(): String<br>+ setContactNum(String c): void<br>+ getContactNum(): String<br>Employee<br>salary: double<br>department: String<br>+ setSalary(double s): void<br>+ getSalary(): double<br>+ setDepartment(String d): void<br>+ getDepartment(): String<br>Student<br>program: String<br>yearLevel: int<br>+ setProgram(String p): void<br>+ getProgram(): String<br>+ setYearLevel(String y): void<br>+ getYearlevel(): int<br>Faculty<br>status: boolean<br>+ isRegular(): boolean<br>

Extracted text: Create a program that exhibits inheritance. Software Requirements: Latest version of NetBeans IDE Java Development Kit (JDK) 8 Procedure: 1. Write a simple information system that will store and display the complete information of a student, faculty, or employee. 2. Create four (4) no-modifier classes named Person, Student, Faculty, and Employee. 3. Create a public class named CollegeList. This class shall contain the main method. 4. Refer to the UML Class Diagram for the names of the variables and methods. The (-) symbol represents private variables, while (+) represents public method. This should be the sequence of the program upon execution: a. Prompt the user to select among Employee, Faculty, or Student, by pressing E, F, or S. b. Ask the user to type the name and contact number. c. For Employee, ask the user to type the employee's monthly salary and the department where he/she belongs to (Ex. Registrar). Then, display name, contact number, salary, and department. For Faculty, ask the user to press Y if the faculty member is regular/tenured or N if not. Then, display name, contact number, salary, department, and status. For Student, ask the user to type the student's enrolled program (Ex. BSIT, BSTM) and his/her year level (integers 1 to 4). Then, display name, contact number, program, and year level. Person name: String contactNum: String + setName(String n): void + getName(): String + setContactNum(String c): void + getContactNum(): String Employee salary: double department: String + setSalary(double s): void + getSalary(): double + setDepartment(String d): void + getDepartment(): String Student program: String yearLevel: int + setProgram(String p): void + getProgram(): String + setYearLevel(String y): void + getYearlevel(): int Faculty status: boolean + isRegular(): boolean
Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here