import javabook.*;
class Euler {
    double t0,t1,dt;
    MainWindow vta;
    void iniciar() {
	 vta = new MainWindow();
	 vta.show();
    }//iniciar
    void preguntar(){
       InputBox entrada = new InputBox(vta);
       t0=entrada.getDouble("Dame t0");
       t1=entrada.getDouble("Dame t1");
       dt=entrada.getDouble("Dame el incremento");
    }//preguntar
    void procesar() {
	OutputBox  salida= new OutputBox(vta);
	salida.show();
        double x=0;
	for (double t=t0;t<=t1;t= t +dt) {
		x = x + Math.sin(t)*dt;
		salida.printLine(x);
        }//for
    }//procesar
}//Euler