Documente Academic
Documente Profesional
Documente Cultură
import java.io.Serializable;
import java.util.Calendar;
String telefono;
double SEGURO_ESCOLAR=300;
double GASTOS_ADMTVOS=150;
long milisegundos=Calendar.getInstance().getTimeInMillis()-
fechNac.getTimeInMillis();
long edad=milisegundos/(1000*60*60*24);
edad=(edad/30)/12;
if(edad>=40) {
return 0+this.GASTOS_ADMTVOS+this.SEGURO_ESCOLAR;
}
if (familianumerosa==true) {
return( MATRICULA*0.5)+this.GASTOS_ADMTVOS+this.SEGURO_ESCOLAR;
}
return MATRICULA+this.GASTOS_ADMTVOS+this.SEGURO_ESCOLAR;
}
@Override
public String toString() {
return "Modalidad Presencial:"+super.toString()+" Telefono: "+getTelefono();
}