예제 #1
0
        public Alumno creaAlumno(Grupo g)
        {
            Alumno a = null;

            string nombre;

            do
            {
                nombre = Auxiliar.leerNombre("\nIntroduzca el nombre del alumno: ");
            } while (nombre.Equals(""));

            nombre = nombre.ToUpper();

            float[] notas = new float[g.NAsig];

            Console.WriteLine("\nIntroduzca las notas del alumno.");

            for (int i = 0; i < g.NAsig; i++)
            {
                notas[i] = Auxiliar.leerNota("\n" + g.CodAsignaturas[i] + ": ");

                if (notas[i] == 11)
                {
                    i--;
                }
            }

            a = new Alumno(nombre, notas);

            return(a);
        }