Download - Operaciones aritmeticas utilizando_checkbox
![Page 1: Operaciones aritmeticas utilizando_checkbox](https://reader036.vdocuments.pub/reader036/viewer/2022062401/587069891a28ab48378b5cbb/html5/thumbnails/1.jpg)
ALUMNOS: • TORRES TRISTÁN CRISTIAN LEONARDO
• PEÑA RODRÍGUEZ MICHELLE• NIETO LINARES DIANA LISBETH
MAESTRA: MARGARITA ROMERO ALVARADO
OPERACIONES ARITMETICAS UTILIZANDO CHECKBOX
CETIS 109
![Page 2: Operaciones aritmeticas utilizando_checkbox](https://reader036.vdocuments.pub/reader036/viewer/2022062401/587069891a28ab48378b5cbb/html5/thumbnails/2.jpg)
Primero agregaremos un TextView, en la ID pondremos ‘tv1’ y de nombre usaremos
‘Dame un numero’.
![Page 3: Operaciones aritmeticas utilizando_checkbox](https://reader036.vdocuments.pub/reader036/viewer/2022062401/587069891a28ab48378b5cbb/html5/thumbnails/3.jpg)
Como anteriormente lo hicimos agregamos otro TextView, en la ID le ponemos ‘tv2’ y de nombre ‘Dame otro numero’, y tambien
ponemos otro EditText y en la ID ponemos ‘et2’.
![Page 4: Operaciones aritmeticas utilizando_checkbox](https://reader036.vdocuments.pub/reader036/viewer/2022062401/587069891a28ab48378b5cbb/html5/thumbnails/4.jpg)
Agregaremos tres ‘CheckBox’ los cuales se llamaran ‘Suma, Resta y Multiplicacion’.
![Page 5: Operaciones aritmeticas utilizando_checkbox](https://reader036.vdocuments.pub/reader036/viewer/2022062401/587069891a28ab48378b5cbb/html5/thumbnails/5.jpg)
Agregaremos un botón el cual llevara por nombre Resultado, en las propiedades bajaremos hasta llegar a donde dice ‘On Click’ pondremos ‘resultado’ en minúsculas.
![Page 6: Operaciones aritmeticas utilizando_checkbox](https://reader036.vdocuments.pub/reader036/viewer/2022062401/587069891a28ab48378b5cbb/html5/thumbnails/6.jpg)
Agregamos un ultimo EditText, en la ID pondremos ‘et3’.
![Page 7: Operaciones aritmeticas utilizando_checkbox](https://reader036.vdocuments.pub/reader036/viewer/2022062401/587069891a28ab48378b5cbb/html5/thumbnails/7.jpg)
Cuando terminemos de hacer el diseño de la aplicación en el Package Explorer expandiremos las opciones de ‘src’, despues las de ‘com.example.(nombre de la aplicación)’ y en donde dice ‘MainActivity.java’ daremos doble click y se nos abrira la pestaña.
![Page 8: Operaciones aritmeticas utilizando_checkbox](https://reader036.vdocuments.pub/reader036/viewer/2022062401/587069891a28ab48378b5cbb/html5/thumbnails/8.jpg)
En la pestaña ‘MainActivity.java que se abrió este será el código que utilizaremos para que la aplicación funcione, y le daremos en guardar todo.
![Page 9: Operaciones aritmeticas utilizando_checkbox](https://reader036.vdocuments.pub/reader036/viewer/2022062401/587069891a28ab48378b5cbb/html5/thumbnails/9.jpg)
Cuando lo hayamos guardado, en el apartado Package Explorer daremos click derecho en donde esta el nombre de nuestra aplicación, iremos al apartado ‘Run As’ y seleccionaremos Android Application, esto será para correr la aplicación en un dispositivo virtual y ver su funcionamiento.
![Page 10: Operaciones aritmeticas utilizando_checkbox](https://reader036.vdocuments.pub/reader036/viewer/2022062401/587069891a28ab48378b5cbb/html5/thumbnails/10.jpg)
Cuando el emulador abra se vera como diseñamos la aplicación, ahora vamos a probar los apartados de SUMA, RESTA y MULTIPLICACION.
![Page 11: Operaciones aritmeticas utilizando_checkbox](https://reader036.vdocuments.pub/reader036/viewer/2022062401/587069891a28ab48378b5cbb/html5/thumbnails/11.jpg)
SUMA
![Page 12: Operaciones aritmeticas utilizando_checkbox](https://reader036.vdocuments.pub/reader036/viewer/2022062401/587069891a28ab48378b5cbb/html5/thumbnails/12.jpg)
![Page 13: Operaciones aritmeticas utilizando_checkbox](https://reader036.vdocuments.pub/reader036/viewer/2022062401/587069891a28ab48378b5cbb/html5/thumbnails/13.jpg)
RESTA
![Page 14: Operaciones aritmeticas utilizando_checkbox](https://reader036.vdocuments.pub/reader036/viewer/2022062401/587069891a28ab48378b5cbb/html5/thumbnails/14.jpg)
![Page 15: Operaciones aritmeticas utilizando_checkbox](https://reader036.vdocuments.pub/reader036/viewer/2022062401/587069891a28ab48378b5cbb/html5/thumbnails/15.jpg)
MULTIPLICACION
![Page 16: Operaciones aritmeticas utilizando_checkbox](https://reader036.vdocuments.pub/reader036/viewer/2022062401/587069891a28ab48378b5cbb/html5/thumbnails/16.jpg)