import javabook.*;
class JBEjemplo5 {
  public static void main(String [] a){
     MainWindow fr ;
     fr = new MainWindow("JBEjemplo5");
     fr.show();
     String [] etiquetas={"nombre","apellidos","edad","bebe?",
	"sueldo"};
     MultiInputBox entradas= new MultiInputBox(fr,etiquetas);
     String [] variables = entradas.getInputs();
     String nombre = variables[0];
     String apellidos = variables[1];
     int edad = Convert.toInt(variables[2]);
     boolean bebedor = Convert.toBoolean(variables[3]);
     float sueldo = Convert.toFloat(variables[4]);
     OutputBox out = new OutputBox(fr);
     out.show();
     out.printLine(nombre + " "+apellidos+" tiene edad de "+edad+
	"aņos y es un "+ (bebedor?"borracho":"abstemio") + 
	" y gana "+sueldo);
    
  }
}