Page 1 of 1

I have sent a question 4 hours ago still there is no response, what's going on?

Posted: Sun Jul 10, 2022 11:24 am
by answerhappygod
I have sent a question 4 hours ago still there is no response,what's going on?
I Have Sent A Question 4 Hours Ago Still There Is No Response What S Going On 1
I Have Sent A Question 4 Hours Ago Still There Is No Response What S Going On 1 (27.37 KiB) Viewed 50 times
+name:String -id:String -salary:double Employee() Employee Employee(String name, String id, double salary) +tax():double +toString():String Consider the Employee a class above and answer the following questions. a) Do we require a getter and setter for instance variable name in the above UML class diagram give a reason for your answer? [2 marks] b) Convert the above UML class diagram into a java class with getters and setters. The tax is calculated as 15% of the salary. [10 marks] c) Declare an array of five Employees. [1 mark]
the above UML class diagram give a reason for your answer? [2 marks] b) Convert the above UML class diagram into a java class with getters and setters. The tax is calculated as 15% of the salary. [10 marks] c) Declare an array of five Employees. [1 mark] d) Write and call a method to insert elements to your array, using the constructor with no parameters. [4 marks] e) Write and call a method to display the elements of your array. [3 marks] f) Write and call a method to calculate and return the average tax paid by the five employees. [8 marks] g) Print out the ID number of the first Employee in the array. [2 marks] i). Write a method that return the index of the employee with the highest salary, when this method is called it should display the id of the employee. [5 marks]