using System.Collections.Generic;
public static void Main()
bool executarMenuPrincipal = true;
while(executarMenuPricipal)
int opcao = Convert.ToInt32(Console.ReadLine());
InformaNotaPrimeiroTrimestre;
InformeNotaSegundoTrimestre;
Console.WriteLine("Opção inválida.");
private void ExibirMenuPrincipal ()
Console.WriteLine("****Menu Principal****\n");
Console.WriteLine("1- Acessar menu de alunos ");
Console.WriteLine("2- Exibir aluno aprovados ");
Console.WriteLine("3- Exibir aluno em recuperação");
Console.WriteLine("4- Fechar o programa \n");
Console.WriteLine("Informe a opção desejada:");
private void ExibirMenuAluno ()
Console.WriteLine("**** Menu Principal****\n");
Console.WriteLine("1- Cadastrar Aluno ");
Console.WriteLine("2- Informar nota 1 trimeste ");
Console.WriteLine("3 - Informa nota 2 trimestre ");
Console.WriteLine("4 - Informa nota 3 trimestre ") ;
Console.WriteLine(" Informe a opção desejada :");
private void ExibirListaAlunos ();
Console.WriteLine("**** Selecione o número do aluno:****\n");
int numeroAluno = Convert
Console.WriteLine("1- Cadastrar Aluno ");
Console.WriteLine("2- Informar nota 1 trimeste ");
Console.WriteLine("3 - Informa nota 2 trimestre ");
Console.WriteLine("4 - Informa nota 3 trimestre ") ;
Console.WriteLine(" Informe a opção desejada :");
private static bool InformeNotaSegundoTrimestre()
InformeNotaSegundoTrimestre();
Console.WriteLine("**** Selecione a nota do segundo trimestre:****\n");
Console.WriteLine("1- Cadastrar Aluno ");
Console.WriteLine("2- Informar nota 2 trimeste ");
private static bool InformeNotaTerceiroTrimestre()
InformeNotaTerceiroTrimestre();
Console.WriteLine("**** Selecione a nota do terceiro trimestre:****\n");
Console.WriteLine("1- Cadastrar Aluno ");
Console.WriteLine("2- Informar nota 2 trimeste ");
private static bool ValidarLista()
return listaAlunos.Count > 0;
public string NotaPrimeiroTrimestre ;
public string NotaSegundoTrimestre ;
public string NotaTerceiroTrimestre ;