Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You are going to design a class that will Find the highest score for a series of topics

Given the following specification

  • If the input is [{“Physics”, {56, 67, 45, 89}}], the result should be [{“Physics”, 89}]

  • If the input is [] the result should be []

  • If the input is [{“Physics”, {56, 67, 45, 89}}, {“Art”, {87, 66, 78}], the result should be [{“Physics”, 89}, {“Art”, 87}]

  • If the input is [{“Physics”, {56, 67, 45, 89}}, {“Art”, {87, 66, 78}}, {“Comp Sci”, {45, 88, 97, 56}}], the result should be [{“Physics”, 89}, {“Art”, 87}, {“Comp Sci”, 97}]

QLC-2.1) Setup and first test

...