Programa6 (1)

Post on 07-Aug-2015

50 views 0 download

Transcript of Programa6 (1)

CETIS 109

RUTH ROSAS4° BM PROGRAMACIÓN

MARGARITA ROMERO ALVARADO

DESARROLLA APLICACIONES MÓVILES

“PROGRAMA 6”

Para que nuestro programa nos corra correctamente se

deben de seguir los siguientes pasos:

Le pondremos como nombre: Programa 6

Tomaremos un TextView Medium

Cambiaremos el Text a: Dame un Numero

Ahora arrastraremos un abc

Le cambiaremos el id a: @+id/et1

Nuevamente arrastraremos un TextView Medium

Cambiaremos el Text a: Dame un Numero

Ahora arrastraremos nuevamente un abc

Le cambiaremos el id a: @+id/et2

Ahora tomaremos un Spinner

En esta parte se quedara como esta, no se le va a agregar nada

ni quitar

Arrastraremos un boton

En Text podremos Operar y en one Click

Calcular

Arrastraremos TextView

Le cambiaremos el Text a «Resultado»

Agregaremos lo siguiente a

nuestra codificación

Y así es como nos queda

nuestro programa

Aprendí a crear un programa que

facilita calcular, sumar, restar y

dividir.

Comentario