Professional Documents
Culture Documents
this.ncontrol=nc;
this.nombre=nom;
this.edad=edd;
this.sexo=sx;
}
public alumno(int nc,int edd, int b1,int b2, int b3, int b4, String nom, String
sx){
this.ncontrol=nc;
this.edad=edd;
this.c1=b1;
this.c2=b2;
this.c3=b3;
this.c4=b4;
this.nombre=nom;
this.sexo=sx;
}
int prom=(getC1()+getC2()+getC3()+getC4())/4;
if( prom<70){
else{
/**
* @return the ncontrol
*/
public int getNcontrol() {
return ncontrol;
}
/**
* @param ncontrol the ncontrol to set
*/
public void setNcontrol(int ncontrol) {
this.ncontrol = ncontrol;
}
/**
* @return the edad
*/
public int getEdad() {
return edad;
}
/**
* @param edad the edad to set
*/
public void setEdad(int edad) {
this.edad = edad;
}
/**
* @return the c1
*/
public int getC1() {
return c1;
}
/**
* @param c1 the c1 to set
*/
public void setC1(int c1) {
this.c1 = c1;
}
/**
* @return the c2
*/
public int getC2() {
return c2;
}
/**
* @param c2 the c2 to set
*/
public void setC2(int c2) {
this.c2 = c2;
}
/**
* @return the c3
*/
public int getC3() {
return c3;
}
/**
* @param c3 the c3 to set
*/
public void setC3(int c3) {
this.c3 = c3;
}
/**
* @return the c4
*/
public int getC4() {
return c4;
}
/**
* @param c4 the c4 to set
*/
public void setC4(int c4) {
this.c4 = c4;
}
/**
* @param nombre the nombre to set
*/
public void setNombre(String nombre) {
this.nombre = nombre;
}
/**
* @param sexo the sexo to set
*/
public void setSexo(String sexo) {
this.sexo = sexo;
}
}