Question: Programming language: Java Let us look at the final result (upon execution of your program): Task (5 marks) A University would like to review some

 Programming language: Java Let us look at the final result (upon

Programming language: Java Let us look at the final result (upon execution of your program): Task (5 marks) A University would like to review some of its staff members and invite a pool of reviewers to give a score in between 0 to 10 to its staff members. To prevent some unfairness, the University eliminates the highest and the lowest scores, and takes the average of the remaining scores. The University then gives three awards: Name Heng 1 Heng 2 Heng 3 Heng 4 Heng 5 Heng 6 Heng 7 Heng 8 Si S2 S3 $4 55 56 S7 S8 Average 3.5 9.0 1.2 3.5 4.9 4.5 4.8 8.9 3.62 7.1 4.2 3.6 1.2 6.3 4.7 3.2 5.4 5.12 7.5 7.8 0.7 1.3 3.2 2.5 6.4 3.9 3.82 5.2 3.6 5.6 6.6 2.3 2.1 7.0 4.9 4.69 9.4 2.7 0.4 5.3 7.1 0.3 3.5 9.9 4.76 5.0 6.4 5.9 9.6 4.3 3.4 4.2 6.8 5.44 0.9 5.8 9.2 4.7 3.5 4.8 9.1 1.7 4.81 7.2 3.2 1.3 5.7 6.6 4.5 0.4 6.9 4.68 The Diamond award to the staff member who scores the highest score in the review The result is Diamond teaching award: Heng 6 Gold teaching award: Heng 2 Bronze teaching award: Heng 1 The important class staff has a public constant or just a class variable indicating the number of reviewers. This class has two instance variables, the name (of staff member) and the array of scores (the scores given by the reviewers). When you construct object of this class, you only need to pass in the name of a staff member. In this class, other than the constructors, the accessor and the mutator methods, you should include a few other methods: The Gold award to the staff member who scores the second highest score in the review. The Bronze award to the staff member who scores the lowest score in the review. 2 You know my scope. Let us look at the UML diagram for this assignment: Staff + static int SIZE - String name -doublel score MainA3 - Stringi name + Staff(String name) + String getNameo -void generateScore +vold printinfo - int highesto -int lowesto + double average +static String diamondAward (ArrayList alist + static String goldAward(ArrayList alist) +static String bronze Award(ArrayList

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!