Português(BR):

Esse programa foi um desafio do Curso Explorer da Rocketseat, onde após ver os conceitos iniciais de JavaScript, foi pedido que mostrasse na tela, através de um alert() as médias de no mínimo 4 alunos e dizer se aquele aluno foi aprovado ou não.

Resolvi ir além:

  • Fiz um programa que primeiro pede o nome dos 4 alunos;
  • Após isso, pede as 2 notas de cada aluno (já citando o nome deles na pergunta);
  • Calcula a média;
  • Diz o nome do aluno e sua média;
  • E caso a nota seja maior que 7,0, diz que o aluno foi aprovado, caso contrário diz para continuar estudando;

English

This program was a challenge for the Rocketseat Explorer Course, where after seeing the initial concepts of JavaScript, it was asked to show on the screen, through an alert(), the averages of at least 4 students and to say if that student passed or not.

I decided to go further:

  • I made a program that first asks for the name of the 4 students;
  • After that, ask for the 2 grades of each student (already mentioning his name in the question);
  • Calculates the average;
  • Says the student's name and average;
  • And if the grade is greater than 7.0, it says that the student was approved, otherwise it says to continue studying;