
Steven S. answered 04/05/22
Experienced Java Developer

Baqer M.
asked 04/02/221. Design a class named Employee_Salary that contains:
• A String data field named name representing the name of the employee.
• A String data field named position representing the position of the employee
• A double data field named salary representing the salary of the employee.
• A constructor with the parameters that initialize the name, position, and salary.
• A method named printInfo () to print the employees details (name, position, and
salary)
• Write a test program that creates an array of object to hold 5 employees object from
employee class. Assign values to the object. Calculate the salary average, then find
how many employees have a salary less than the average and how many employees
have a salary greater than the average. Calling printInfo method to display the
information of all employees and show the number of employees have a salary less
than the average and the number of employees have a salary greater than the average.
Steven S. answered 04/05/22
Experienced Java Developer
Jesse P.
04/05/22
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.
Steven S.
Curious why I did something? Let's discuss.04/05/22