GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Modul 12 von 18 · Medien

Test result revisit

Kostas Diakogiannis

Test result revisit

A-6 Test Results revisit

Imagine that a fellow teacher has decided to split your results into two arrays of 5 length each. The one contains only scores from the ones that have passed and the other one from the ones that have not. 

You didn't want that but you don't want to say something bad to him because you are friends and colleagues more years than someone can remember.

The array that holds the good scores is [67, 82, 91, 96, 54].

The array that holds the bad scores is [46, 48, 24, 33, 30].

Find a way to unite these 2 arrays into one.  Possibly the concat function is going to be helpful at this point and you want to revisit it's documentation here.

Calculate the average of  this unified array. Add a new element score (an 11th) to the new unified  array and recalculate the average again. Compare if the average has moved up, down and by what margin? 

In the end try to find the best score in the class and print it to the console.

Anleitung

Um im Kurs weiterzukommen, sende einen Versuch dieses Quiz ab. Du kannst ihn nach der letzten Frage absenden.

Zum gewählten Modul

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck