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...


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>Student<br>salary: double<br>department: String<br>+ setSalary(double s): void<br>+ getSalary(): double<br>+ setDepartment(String d): void<br>+ getDepartment(): String<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 Student salary: double department: String + setSalary(double s): void + getSalary(): double + setDepartment(String d): void + getDepartment(): String program: String yearLevel: int + setProgram(String p): void + getProgram(): String + setYearlevel(String y): void + getYearlevel(): int Faculty status: boolean + isRegular(): boolean
Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here