I have sent a question 4 hours ago still there is no response,what's going on?
+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]
I have sent a question 4 hours ago still there is no response, what's going on?
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am