Question: code in java + An employee is represented with the following information: name, address, contact number, and salary. When an employee works for 365 days,
code in java
+ An employee is represented with the following information: name, address, contact number, and salary. When an employee works for 365 days, the salary is increased by 10%. When the employee gets promoted the salary will increase 15%.
+ A student is represented with the following information: name, address, contact number, student ID, and GPA. A student spends 24 hours study will get 1% increase in their GPA, when a student takes an exam, if his GPA is greater than 3.0 he'll get an A grade; if the GPA is between 2.0 and 3.0, he'll get a B; otherwise, he'll get a C
1. Create a base class represent both the student and the employee
2. Create the employee and student classes extended from the based class with given functionality information
3. Create a student object and an employee object
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
