Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package examen1;
- public class pruebaGrupo {
- @SuppressWarnings("rawtypes")
- public static void main(String[] args) {
- double[] notas1 = {4.7,10.0,5.7,4.0,7,2};
- double[] notas2 = {1.0,5.0,1.0,4.0,4.5};
- double[] notas3 = {5.0,5.0,10.0,7.0,5.0};
- double[] notas4 = {10.0,5.0,10.0,5.0,6.2};
- double[] notas5 = {3.0,2.0,1.0,4.0,4.9};
- alumno a1=new alumno("paquito","paquitonico@gmai.com",false,notas1,5);
- alumno a2=new alumno("luis","luisluis@gmail.com",true,notas2,4);
- alumno a3=new alumno("fran","franciscofran@gmail.co,",false,notas3,5);
- alumno a4=new alumno("pepe","pepito@gmail.com",false,notas4,5);
- alumno a5=new alumno("Javi","javielindio@gmail.com",true,notas5,5);
- alumno[] alumnos={a1,a2,a3,a4,a5};
- Grupo gp1 =new Grupo("Informatica", true, alumnos, 5);
- String medias=gp1.generarListadoMedias(alumnos,5);
- System.out.println("Las medias de los alumnos son: "+"\n"+medias);
- String mediasrepetidores=gp1.generarListadoRepetidores(alumnos, 5);
- System.out.println("\nLas medias de todos los alumnos repetidores son: "+"\n"+mediasrepetidores);
- double notamaxima=gp1.notaMaxima(alumnos,5);
- System.out.println("los nota maxima de todo el grupo es:"+notamaxima);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement