Ejemplo programacion C#
Enviado por Programa Chuletas y clasificado en Informática y Telecomunicaciones
Escrito el en español con un tamaño de 2,88 KB
public class Alumno {
private String nomApe;
private int añoNac;
private int curso;
private int[] notas;
private boolean becario;
public Alumno(String n) {
nomApe=n;
añoNac=(int)(17*Math.random()+1988);
curso=(int)(6*Math.random()+1);
notas=new int[9];
for(int i=0; i
}
becario=(Math.random()<0.5)?true:false;
}
public String getNomA() {
return nomApe;
}