O GoConqr está de visual novo! Conte para nós o que você achou.

Módulo 12 de 18 · Mídia

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.

Instruções

Para avançar no curso, envie uma tentativa deste quiz. Você pode enviá-la depois da última pergunta.

Ir para o módulo escolhido

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?