Question: Im using Notepad plus and java programming (Using array and simple java codes) however im having trouble Objectives Selection and Repetition control structures Classes and



Im using Notepad plus and java programming (Using array and simple java codes) however im having trouble
Objectives Selection and Repetition control structures Classes and objects Instance and static methods The use of arrays and ArrayList's 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: The Diamond award to the staff member who scores the highest score in the review 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. 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) + Sting getName -void generateScore +void printinfo -int highesto - int lowesto + double average + static String diamondAward (ArrayList alist) + static String bronzeAward(ArrayList alisi) + static void main(String[] args) Look simple right? You only have two classes to design. Let us look at the final result (upon execution of your program): Name Heng 1 Heng 2 Heng 3 Heng 4 Heng 5 Heng 6 Heng 7 Heng 8 S1 S2 S3 S4 3.5 9.0 1.2 3.5 7.1 4.2 8.6 1.2 7.5 7.8 0.7 1.3 5.2 3.6 5.6 6.6 9.4 2.7 2.4 5.3 5.@ 6.4 5.9 9.6 0.9 5.0 9.2 4.7 7.2 3.0 1.3 5.7 S5 56 S7 S8 Average 4.9 4.5 4.0 @.9 3.62 6.3 4.7 3.2 5.4 5.12 3.2 @.5 6.4 3.9 3.82 2.3 0.1 7.0 4.8 4.69 7.1 0.3 3.5 9.9 4.76 4.3 3.4 4.2 6.8 5.44 3.5 9.1 1.7 4.81 6.6 4.5 0.4 6.9 4.68 The result is Diamond teaching award: Heng 6 Gold teaching award: Hong 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: A method to generate the values (any value from 0 to 10, real numbers) for the array of scores, simulate the scores given by the reviewers A method to check and to return which reviewer gives the highest scores A method to check and to return which reviewer gives the lowest scores A method to compute and to return the average scores. Note that the highest and the lowest scores must be eliminated in computing the average A method to print out an object of the class. The printing format, as shown in the output, the name of staff member, the scores of reviewers, and the average. Any other methods required by your design, feel free to add in. In another class, you declare a main method. You defined an array of names (String type, of course), indicating the names of the staff members to be reviewed. For each of the name, you construct an object of Staff and add the object to an object of ArrayList. You then display the array list. Finally, based on the average scores, you design at least three methods in the main file: A method to return the staff name that gets the Diamond award A method to return the staff name that gets the Gold award A method to return the staff name that gets the Bronze award