+Employee ()
+Employee (id: int, name: String, salary:double, seniority: int)
+setSeniority(int seniority): void
+toString(): String
seniority
setSeniority(int seniority): void update seniority. If the seniority less than or equal to 0 then set to 1
+updateSalary(): void
toString(): String - return string of format of the Employee: id, name, salary, seniority. The salary is formatted two decimal places.
updateSalary(): void update salary by the
following rules:
seniority from 3 to 5: increase salary up to
30%seniority from 6 to 10: increase salary up to
50%seniority greater than 10: increase salary up
to 100%
-The Main class is provided for you in binary form. You only test your program by running the binary file.There are several test cases for you, as follows:
Enter id:1
Enter id:1
Enter name:Tran Anh
Enter salary:1000
Enter salary:1000
Zoom
Enter name:Tran Anh
+ 100%
Close