valueOf(z)); }
this.stringItem.setText(Stri ng.valueOf(z));
ScrAen:
floow
floow: resultado
4promedio resultado edad source: int e; e=Integer.parseInt(this.textField.getString()); if(e>=18)this.stringItem.setText(String.valueOf("eres mayor")); if(e<=17)this.stringItem.setText(String.valueOf("eres menor")); 3la source : double es,ma,his,fo,ci,z,p;
es=Double.parseDouble(thi s.textField.getString());
ma=Double.parseDouble(t his.textField1.getString());
his=Double.parseDouble(th is.textField.getString());
fo=Double.parseDouble(thi s.textField1.getString());
screen:
ci=Double.parseDouble(thi s.textField.getString());
this.stringItem1.setText(String.valueOf(z)); this.stringItem.setText(String.valueOf(p)); }
Screan: Floow:
source } else if (command == okCommand) { // write pre-action user code here int n; int factorial=1; int i = 1;
Factorial
flow
FLOW
GRADOS A FARENGEI SOURCE } else if (command == okCommand) { // write pre-action user code here double g,c; g=double.parseDouble(this .textField.getString()); c=g*1.8-32; this.textField.setString(Stri ng.valueOf(c));
TU CALIFICACIN ES?
RESULTADO
flow
source } else if (command == okCommand1) { // write pre-action user code here int c; c=Integer.parseInt(this.textField.getString()); if(c==10){ this.stringItem.setText(String.valueOf("matricula de honer")); } else if(c==9){ this.stringItem.setText(String.valueOf("sobresaliente")); } else if(c==7){ this.stringItem.setText(String.valueOf("notable")); } else if(c==6){ this.stringItem.setText(String.valueOf("aprovado")); } else if(c==5){ this.stringItem.setText(String.valueOf("reprobado")); } // write post-action user code here
Al Cuadrado y Cubo
Flow
MUSICA SOURCE if (displayable == cantante) { if (command == backCommand) { // write pre-action user code here source } else if (command == okCommand) { // write pre-action user code here double x,a,z; x=Double.parseDouble(this.textField.getString()); z=(x*x); a=(x*x*x); this.stringItem.setText(String.valueOf(z)); this.stringItem1.setText(String.valueOf(a)); RESULTADO switchDisplayable(null, getLista()); // write postaction user code here } } else if (displayable == lista) { if (command == buscar) { // write pre-action user code here switchDisplayable(null, getCantante()); // write post-action user code here if
this.choiceGroup.isSelected(0)==true){ this.stringItem.setText("Paulina Rubio"); } if (this.choiceGroup.isSelected(1)==true){ this.stringItem.setText("Guns and rouses"); } if (this.choiceGroup.isSelected(2)==true){ this.stringItem.setText("Rammstein"); } if (this.choiceGroup.isSelected(3)==true){ this.stringItem.setText("One Direction"); } else if (command == exitCommand) TEST Esta aplicacin nos sirve para llevar varias preguntas y para los conocimientos y que nos muestre el nmero de respuestas correctas. VISTA SCREEN
test int indice; if (displayable == pregunta1) { if (command == exitCommand) { // write pre-action user code here // write post-action user code here } else if (command == okCommand) { // write pre-action user code here indice=choiceGroup.getSel ectedIndex(); if (indice==1) total++; switchDisplayable(null, getPregunta2()); // write post-action user code here } } else if (displayable == pregunta10) { if (command == exitCommand5) { // write pre-action user code here // write post-action user code here
FLOW
} else if (command == okCommand10) { // write pre-action user code here indice=choiceGroup9.getSelectedIndex(); if (indice==1) total++; switchDisplayable(getAlert(), getResultado()); // write post-action user code here stringItem.setText("usted tiene" +total+ "respuestas correctas de 10 posibles"); double x,y,z; x=Double.parseDouble(this.stringItem.getString()); y=Double.parseDouble(this.textField1.getString()); z=y/(x*x); this.stringItem.setText(String.valueOf(z)); } } else if (displayable == pregunta2) { if (command == exitCommand1) { // write pre-action user code here // write post-action user code here } else if (command == okCommand1) { // write pre-action user code here indice=choiceGroup1.getSelectedIndex(); if (indice==1) total++;
FLOW
RESULTADO
RESULTADO
double x,y,z; x=Double.parseDouble(this .textField1.getString()); y=Double.parseDouble(this .textField2.getString()); z=(x*y)/2; this.stringItem1.setText(Str ing.valueOf(z)); // write postaction user code here } } else if (displayable == form2) { if (command == backCommand2) { // write pre-action user code here switchDisplayable(null, getList()); // write postaction user code here } else if (command == okCommand3) { // write pre-action user code here double x,y,z,a; x=Double.parseDouble(this .textField3.getString()); y=Double.parseDouble(this .textField4.getString()); z=Double.parseDouble(this .textField5.getString()); a=(x+y)*z/2; this.stringItem2.setText(Str ing.valueOf(a)); // write postaction user code here }
SOURCE AREAS if (displayable == form) { if (command == backCommand) { // write pre-action user code here switchDisplayable(null, getList()); // write post-action user code here } else if (command == okCommand1) { // write pre-action user code here. double x,z; x=Double.parseDouble(this.textField.getString()); z=(x*x); this.stringItem.setText(String.valueOf(z)); // write post-action user code here } } else if (displayable == form1) { if (command == backCommand1) { // write pre-action user code here switchDisplayable(null, getList()); // write post-action user code here } else if (command == okCommand2) { // write pre-action user code here