CSCI 1301 - Lab 27

Clément Aubert

April 24, 2018

Part I - Solution to Project #5

You can find a possible solution to project #5 here: Project5. Compare those solutions with the one you obtained, and make sure you understand them. If you feel comfortable with them, have another look at the additional algorithms you were asked to think about.

Part II - Wrapping up Lab 26

Start by downloading an updated version of the Game class: Game_V3.

In this project, the Game class stayed the same (there were just two getters added, look for /* New code below, what is above is unchanged.*/). The main difference is in the Program class: it is now manipulating an array of Game objects. Make sure you understand this code, and how arrays of objects are created.

The (ambitious) challenge remains the same as during lab 25: can you compute the average of each player? Try to tackle the problems in smaller chunks:

  1. Can you display all the scores as integers?
  2. Can you sum the scores of a particular player?
  3. Can you compute the average of a particular player?