programa 5
TRANSCRIPT
![Page 1: Programa 5](https://reader030.vdocumento.com/reader030/viewer/2022032505/55c664f0bb61eb28058b46ec/html5/thumbnails/1.jpg)
PROGRAMA 5
Cetis 109
Desarrolla Aplicaciones Móviles
Nombre: Carlos Alexis Rocha Montero Grado: 4º Grupo:B
Especialidad: Programación
Maestra: Margarita Romero Alvarado
![Page 2: Programa 5](https://reader030.vdocumento.com/reader030/viewer/2022032505/55c664f0bb61eb28058b46ec/html5/thumbnails/2.jpg)
Creamos un documento nuevo, nos vamos a File, New y en Android
Application Project.
![Page 3: Programa 5](https://reader030.vdocumento.com/reader030/viewer/2022032505/55c664f0bb61eb28058b46ec/html5/thumbnails/3.jpg)
Se abre una pantalla, donde le tenemos que poner el nombre, en este caso le pusimos
Programa 5.
![Page 4: Programa 5](https://reader030.vdocumento.com/reader030/viewer/2022032505/55c664f0bb61eb28058b46ec/html5/thumbnails/4.jpg)
Le damos next a todo y al final finish, y nos aparecerá ya la pantalla con la
palabra hello world, la cual tendremos que borrar.
![Page 5: Programa 5](https://reader030.vdocumento.com/reader030/viewer/2022032505/55c664f0bb61eb28058b46ec/html5/thumbnails/5.jpg)
Ahora ponemos un text «Medium», su «id» lo dejamos igual (@+id/textView1) y en «text» le
ponemos (Dame un numero)
![Page 6: Programa 5](https://reader030.vdocumento.com/reader030/viewer/2022032505/55c664f0bb61eb28058b46ec/html5/thumbnails/6.jpg)
Después ponemos un «abc», en su «id» le ponemos (@+id/et1)
![Page 7: Programa 5](https://reader030.vdocumento.com/reader030/viewer/2022032505/55c664f0bb61eb28058b46ec/html5/thumbnails/7.jpg)
Ponemos a continuación otro text «Medium», en su «id» debe de tener
(@+id/textView2) en su «text» (Dame otro numero)
![Page 8: Programa 5](https://reader030.vdocumento.com/reader030/viewer/2022032505/55c664f0bb61eb28058b46ec/html5/thumbnails/8.jpg)
Introducimos otro «abc», y en su «id» le ponemos (@+id/et2)
![Page 9: Programa 5](https://reader030.vdocumento.com/reader030/viewer/2022032505/55c664f0bb61eb28058b46ec/html5/thumbnails/9.jpg)
Ahora pondremos un «CheckBox», en su «id» tiene que tener (@+id/CheckBox1) y su «text» le
pondremos (Sumar), nos vamos hasta abajo en «Checked» y le ponemos (False)
![Page 10: Programa 5](https://reader030.vdocumento.com/reader030/viewer/2022032505/55c664f0bb61eb28058b46ec/html5/thumbnails/10.jpg)
Ponemos otro «CheckBox»,su «text» le ponemos (Restar) y en «Checked» le ponemos (false)
![Page 11: Programa 5](https://reader030.vdocumento.com/reader030/viewer/2022032505/55c664f0bb61eb28058b46ec/html5/thumbnails/11.jpg)
Otra vez ponemos un «CheckBox» su «id» le ponemos (@+id/checkBox3) y en «text» le ponemos
(Multiplicar), y en «Checked» (False)
![Page 12: Programa 5](https://reader030.vdocumento.com/reader030/viewer/2022032505/55c664f0bb61eb28058b46ec/html5/thumbnails/12.jpg)
Ponemos un «Button» su «id» lo dejamos igual, en «text» le ponemos (Resultado) y en «Onclick» le
ponemos (calcular)
![Page 13: Programa 5](https://reader030.vdocumento.com/reader030/viewer/2022032505/55c664f0bb61eb28058b46ec/html5/thumbnails/13.jpg)
Después pondremos otro «abc», su «id» le pondremos (@+id/et3)
![Page 14: Programa 5](https://reader030.vdocumento.com/reader030/viewer/2022032505/55c664f0bb61eb28058b46ec/html5/thumbnails/14.jpg)
Ahora insertamos la codificación, para que nuestro programa ejecute muy bien.
![Page 15: Programa 5](https://reader030.vdocumento.com/reader030/viewer/2022032505/55c664f0bb61eb28058b46ec/html5/thumbnails/15.jpg)
Y ejecutamos el programa, y así nos tiene que quedar
![Page 16: Programa 5](https://reader030.vdocumento.com/reader030/viewer/2022032505/55c664f0bb61eb28058b46ec/html5/thumbnails/16.jpg)
OPINION PERSONAL
• Un poco mas complicado pero con lo que llevamos haciendo de programas ya iré agarrando practica.