Write a class named Employee that has the following fields:
id : The id field references a String object that holds the
Employee’s id.
name : The name field references a String object that holds
the Employee’s name. salary : double.
Write constructor Accepts all fields as an argument and the
appropriate accessor ,mutator , toString methods for the class.
Write a class named Stack :
put all fields and methods which belongs to stack ,data type of array
in stack is Employee.
Write a program that allows the user to enter set of employees in
stack and calculate total salary of all employee
show him the following figure:
output:
1_ Enter 1 to add Employee
2_ Enter 2 to find Total Salary of all Employee
3_ Enter 3 to search Employee
4_ Enter 4 Exit
Notes:
use any Search algorithm in number 3 in menu
find Total salary of all employees use recursion function