Está en la página 1de 9

PROYECTOS DE NETBEANS LA Suma de dos nmeros Source Doubl z,x,y; x=Double.parseDouble(this.textField.getStrin g()); y=Double.parseDouble(this.textField1.getStri ng()); z=x+x; this.stringItem.setText(String.

valueOf(z)); } ScrAen:

2 salario docente Source double x,a,z; x=Double.parseDouble(this.textField.getStrin g()); z=(x*x); a=(x*x*x); this.stringItem.setText(String.valueOf(z)); this.stringItem1.setText(String.valueOf(a)); screan:

floow

floow:

resultado

YESICA SEG

resultado

floow:

resultado:

3la edad source: int e; 4promedio e=Integer.parseInt(this.textField.getString()); source : double es,ma,his,fo,ci,z,p; if(e>=18)this.stringItem.setText(String.value Of("eres mayor"));

es=Double.parseDouble(this.textField.getStri ng());

if(e<=17)this.stringItem.setText(String.value Of("eres menor")); screen:

ma=Double.parseDouble(this.textField1.getS tring());

his=Double.parseDouble(this.textField.getStr ing());

fo=Double.parseDouble(this.textField1.getStr ing());

ci=Double.parseDouble(this.textField.getStri ng()); z=es+ma+his+fo+ci; p=z/5;

this.stringItem1.setText(String.valueOf(z));

this.stringItem.setText(String.valueOf(p)); } Screan: flow

Floow: B

source } else if (command == okCommand) { // write pre-action user code here int n; int factorial=1; int i = 1;

Factorial

n=Integer.parseInt(this.textField.getStrin g()); while (i<=n){ factorial=factorial*1; i++; } this.stringItem.setText(String.valueOf(fac torial)); RESULTADO

FLOW

GRADOS A FARENGEI SOURCE } else if (command == okCommand) { // write pre-action user code here double g,c; g=double.parseDouble(this.textField.getStrin g()); c=g*1.8-32; this.textField.setString(String.valueOf(c));

TU CALIFICACIN ES?

else if(c==5){ this.stringItem.setText(String.valueOf("repro bado")); } // write post-action user code here

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("matri cula de honer")); } else if(c==9){ this.stringItem.setText(String.valueOf("sobre saliente")); } else if(c==7){ this.stringItem.setText(String.valueOf("notab le")); } else if(c==6){ this.stringItem.setText(String.valueOf("aprov ado")); }

Al Cuadrado y Cubo

Flow

MUSICA SOURCE if (displayable == cantante) { if (command == backCommand) { // write pre-action user code here switchDisplayable(null, getLista()); // write post-action 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){

source } else if (command == okCommand) { // write pre-action user code here double x,a,z; x=Double.parseDouble(this.textField.getStrin g()); z=(x*x); a=(x*x*x); this.stringItem.setText(String.valueOf(z)); this.stringItem1.setText(String.valueOf(a)); RESULTADO

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.getSelectedIndex(); 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 } 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");

FLOW

double x,y,z; x=Double.parseDouble(this.stringItem.getStri ng()); y=Double.parseDouble(this.textField1.getStri ng()); 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++;

RESULTADO

FLOW

RESULTADO

// write pre-action user code here double x,y,z; x=Double.parseDouble(this.textField1.getStri ng()); y=Double.parseDouble(this.textField2.getStri ng()); z=(x*y)/2; this.stringItem1.setText(String.valueOf(z)); // write post-action user code here } } else if (displayable == form2) { if (command == backCommand2) { // write pre-action user code here switchDisplayable(null, getList()); // write post-action user code here } else if (command == okCommand3) { // write pre-action user code here double x,y,z,a; x=Double.parseDouble(this.textField3.getStri ng()); 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.getStrin g()); 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) { y=Double.parseDouble(this.textField4.getStri ng()); z=Double.parseDouble(this.textField5.getStri ng()); a=(x+y)*z/2; this.stringItem2.setText(String.valueOf(a)); // write post-action user code here } } else if (displayable == list) { if (command == List.SELECT_COMMAND) {

También podría gustarte