![Page 1: Operaciones aritmeticas utilizando_radio_button1](https://reader031.vdocuments.pub/reader031/viewer/2022021814/58ec9e811a28ab6b4e8b4681/html5/thumbnails/1.jpg)
OPERACIONES
ARITMETIC
AS UTILIZANDO
RADIO BUTTON
EDITH YAMILETH GONZALEZ
CARO
JORGE ENRIQ
UE SANT IAGO
GARCIA
![Page 2: Operaciones aritmeticas utilizando_radio_button1](https://reader031.vdocuments.pub/reader031/viewer/2022021814/58ec9e811a28ab6b4e8b4681/html5/thumbnails/2.jpg)
A
Abrimos nuestro nuevo proyecto de aplicación android
![Page 3: Operaciones aritmeticas utilizando_radio_button1](https://reader031.vdocuments.pub/reader031/viewer/2022021814/58ec9e811a28ab6b4e8b4681/html5/thumbnails/3.jpg)
Le damos un nombre
![Page 4: Operaciones aritmeticas utilizando_radio_button1](https://reader031.vdocuments.pub/reader031/viewer/2022021814/58ec9e811a28ab6b4e8b4681/html5/thumbnails/4.jpg)
Eliminamos el hello world
![Page 5: Operaciones aritmeticas utilizando_radio_button1](https://reader031.vdocuments.pub/reader031/viewer/2022021814/58ec9e811a28ab6b4e8b4681/html5/thumbnails/5.jpg)
Creamos los text view,los radiobutton, los plain text y el button
![Page 6: Operaciones aritmeticas utilizando_radio_button1](https://reader031.vdocuments.pub/reader031/viewer/2022021814/58ec9e811a28ab6b4e8b4681/html5/thumbnails/6.jpg)
AGREGAMOS EL SIGUIENTE CODIGO public void operar(View view) { EditText et1=(EditText)findViewById(R.id.et1); EditText et2=(EditText)findViewById(R.id.et2); TextView tv3=(TextView)findViewById(R.id.tv3); RadioButton radio0=(RadioButton)findViewById(R.id.radio0); RadioButton radio1=(RadioButton)findViewById(R.id.radio1); int nro1=Integer.parseInt(et1.getText().toString()); int nro2=Integer.parseInt(et2.getText().toString());
![Page 7: Operaciones aritmeticas utilizando_radio_button1](https://reader031.vdocuments.pub/reader031/viewer/2022021814/58ec9e811a28ab6b4e8b4681/html5/thumbnails/7.jpg)
if (radio0.isChecked()==true) { int suma=nro1+nro2; String resu=String.valueOf(suma); tv3.setText(resu); } else if (radio1.isChecked()==true) { int resta=nro1-nro2; String resu=String.valueOf(resta); tv3.setText(resu); } }
![Page 8: Operaciones aritmeticas utilizando_radio_button1](https://reader031.vdocuments.pub/reader031/viewer/2022021814/58ec9e811a28ab6b4e8b4681/html5/thumbnails/8.jpg)
![Page 9: Operaciones aritmeticas utilizando_radio_button1](https://reader031.vdocuments.pub/reader031/viewer/2022021814/58ec9e811a28ab6b4e8b4681/html5/thumbnails/9.jpg)
Lo corremos..
![Page 10: Operaciones aritmeticas utilizando_radio_button1](https://reader031.vdocuments.pub/reader031/viewer/2022021814/58ec9e811a28ab6b4e8b4681/html5/thumbnails/10.jpg)
LISTO
![Page 11: Operaciones aritmeticas utilizando_radio_button1](https://reader031.vdocuments.pub/reader031/viewer/2022021814/58ec9e811a28ab6b4e8b4681/html5/thumbnails/11.jpg)
CONCLUSION MI CONCLUSION ES QUE PUES SE ME HACEN
MUY INTERESANTES,YA QUE NO ES TAN DIFICIL Y ACADA PROGRAMA LE APRENDES
UNA COSA NUEVA ESTOS PROGRAMAS SE ME HACEN MUY INTERESANTES Y NOS SIRVEN MUCHO PARA TODOS NOSOTROS .
-JORGE ENRIQUE SANTIAGO GARCIA.