CSIT111: Programming Fundamental - Selection and Repetition Control Structures - IT Assignment Help

Download Solution Order New Solution
Assignment Task:

Objectives:

  • Selection and Repetition control structures
  • Classes and objects
  • Instance and static methods
  • The use of arrays and ArrayList’s

 

Task:

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:

the UML diagram

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 a staff member) and the array of scores (the scores given by the reviewers). When you construct an 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 the staff member, the scores of the reviewer and the average.
  • Any other methods required by your design, feel free to an add-in.

 

In another class, you declare the 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.

 


This CSIT111: IT Assignment has been solved by our IT Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our experts are well trained to follow all marking rubrics & referencing style.

Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.