SlideShare ist ein Scribd-Unternehmen logo
1 von 10
PRACTICA 7 .-
OPERACIONES
ARITMETICAS
UTILIZANDO
CHECKBOX
EDHIEL MEDINA TELLO
4°Am PG
A
Abrimos nuestro nuevo proyecto de
aplicación android
Le damos un
nombre
Eliminamos el
hello world
Creamos los
text view,los
radiobutton,
los plain text y
el button
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());
•
•
• 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);
• }
•
• }
Lo corremos..
LISTO

Weitere ähnliche Inhalte

Andere mochten auch

Dispositivosmoviles edhiel
Dispositivosmoviles edhielDispositivosmoviles edhiel
Dispositivosmoviles edhielEduardo Medina
 
Permaculture in Mediterranean Climate Regions Presented by Byron Joel
Permaculture in Mediterranean Climate Regions Presented by Byron JoelPermaculture in Mediterranean Climate Regions Presented by Byron Joel
Permaculture in Mediterranean Climate Regions Presented by Byron JoelDiegoFooter
 
Local Organics Improving Local Soils. Building a Large Scale Composting Busin...
Local Organics Improving Local Soils. Building a Large Scale Composting Busin...Local Organics Improving Local Soils. Building a Large Scale Composting Busin...
Local Organics Improving Local Soils. Building a Large Scale Composting Busin...DiegoFooter
 
Shifting the Workload to Your Livestock - Presented by Meg Grzeskiewicz
Shifting the Workload to Your Livestock - Presented by Meg GrzeskiewiczShifting the Workload to Your Livestock - Presented by Meg Grzeskiewicz
Shifting the Workload to Your Livestock - Presented by Meg GrzeskiewiczDiegoFooter
 
Business Systems Innovation Labs - AMCIS 2016 Presentation
Business Systems Innovation Labs - AMCIS 2016 PresentationBusiness Systems Innovation Labs - AMCIS 2016 Presentation
Business Systems Innovation Labs - AMCIS 2016 PresentationTim Hill
 
Restoration Agriculture Business Models - Presented by Mark Shepard and Kevin...
Restoration Agriculture Business Models - Presented by Mark Shepard and Kevin...Restoration Agriculture Business Models - Presented by Mark Shepard and Kevin...
Restoration Agriculture Business Models - Presented by Mark Shepard and Kevin...DiegoFooter
 
The Problem is the Solution – Regenerative Re-Entry for ReSkilling our Commun...
The Problem is the Solution – Regenerative Re-Entry for ReSkilling our Commun...The Problem is the Solution – Regenerative Re-Entry for ReSkilling our Commun...
The Problem is the Solution – Regenerative Re-Entry for ReSkilling our Commun...DiegoFooter
 
Stockmanship - Animals Behaving At Their Best - Presented by Bruce Maynard
Stockmanship - Animals Behaving At Their Best - Presented by Bruce MaynardStockmanship - Animals Behaving At Their Best - Presented by Bruce Maynard
Stockmanship - Animals Behaving At Their Best - Presented by Bruce MaynardDiegoFooter
 
Homestead and Farm Resiliency and Regeneration - 10 Years In A Cold Climate, ...
Homestead and Farm Resiliency and Regeneration - 10 Years In A Cold Climate, ...Homestead and Farm Resiliency and Regeneration - 10 Years In A Cold Climate, ...
Homestead and Farm Resiliency and Regeneration - 10 Years In A Cold Climate, ...DiegoFooter
 
The Nature of Power - Presented by Erica & Ernie Wisner
The Nature of Power - Presented by Erica & Ernie WisnerThe Nature of Power - Presented by Erica & Ernie Wisner
The Nature of Power - Presented by Erica & Ernie WisnerDiegoFooter
 
Practical Biodynamic Farming Presented by Adam Klaus
Practical Biodynamic Farming Presented by Adam KlausPractical Biodynamic Farming Presented by Adam Klaus
Practical Biodynamic Farming Presented by Adam KlausDiegoFooter
 

Andere mochten auch (11)

Dispositivosmoviles edhiel
Dispositivosmoviles edhielDispositivosmoviles edhiel
Dispositivosmoviles edhiel
 
Permaculture in Mediterranean Climate Regions Presented by Byron Joel
Permaculture in Mediterranean Climate Regions Presented by Byron JoelPermaculture in Mediterranean Climate Regions Presented by Byron Joel
Permaculture in Mediterranean Climate Regions Presented by Byron Joel
 
Local Organics Improving Local Soils. Building a Large Scale Composting Busin...
Local Organics Improving Local Soils. Building a Large Scale Composting Busin...Local Organics Improving Local Soils. Building a Large Scale Composting Busin...
Local Organics Improving Local Soils. Building a Large Scale Composting Busin...
 
Shifting the Workload to Your Livestock - Presented by Meg Grzeskiewicz
Shifting the Workload to Your Livestock - Presented by Meg GrzeskiewiczShifting the Workload to Your Livestock - Presented by Meg Grzeskiewicz
Shifting the Workload to Your Livestock - Presented by Meg Grzeskiewicz
 
Business Systems Innovation Labs - AMCIS 2016 Presentation
Business Systems Innovation Labs - AMCIS 2016 PresentationBusiness Systems Innovation Labs - AMCIS 2016 Presentation
Business Systems Innovation Labs - AMCIS 2016 Presentation
 
Restoration Agriculture Business Models - Presented by Mark Shepard and Kevin...
Restoration Agriculture Business Models - Presented by Mark Shepard and Kevin...Restoration Agriculture Business Models - Presented by Mark Shepard and Kevin...
Restoration Agriculture Business Models - Presented by Mark Shepard and Kevin...
 
The Problem is the Solution – Regenerative Re-Entry for ReSkilling our Commun...
The Problem is the Solution – Regenerative Re-Entry for ReSkilling our Commun...The Problem is the Solution – Regenerative Re-Entry for ReSkilling our Commun...
The Problem is the Solution – Regenerative Re-Entry for ReSkilling our Commun...
 
Stockmanship - Animals Behaving At Their Best - Presented by Bruce Maynard
Stockmanship - Animals Behaving At Their Best - Presented by Bruce MaynardStockmanship - Animals Behaving At Their Best - Presented by Bruce Maynard
Stockmanship - Animals Behaving At Their Best - Presented by Bruce Maynard
 
Homestead and Farm Resiliency and Regeneration - 10 Years In A Cold Climate, ...
Homestead and Farm Resiliency and Regeneration - 10 Years In A Cold Climate, ...Homestead and Farm Resiliency and Regeneration - 10 Years In A Cold Climate, ...
Homestead and Farm Resiliency and Regeneration - 10 Years In A Cold Climate, ...
 
The Nature of Power - Presented by Erica & Ernie Wisner
The Nature of Power - Presented by Erica & Ernie WisnerThe Nature of Power - Presented by Erica & Ernie Wisner
The Nature of Power - Presented by Erica & Ernie Wisner
 
Practical Biodynamic Farming Presented by Adam Klaus
Practical Biodynamic Farming Presented by Adam KlausPractical Biodynamic Farming Presented by Adam Klaus
Practical Biodynamic Farming Presented by Adam Klaus
 

Ähnlich wie Practica 7 edhiel

Ähnlich wie Practica 7 edhiel (19)

Operaciones aritmeticas utilizando_radio_button(1)_1
Operaciones aritmeticas utilizando_radio_button(1)_1Operaciones aritmeticas utilizando_radio_button(1)_1
Operaciones aritmeticas utilizando_radio_button(1)_1
 
OPERACIONES ARITMETICAS UTILIZANDO CHECKBOX
 OPERACIONES ARITMETICAS UTILIZANDO CHECKBOX OPERACIONES ARITMETICAS UTILIZANDO CHECKBOX
OPERACIONES ARITMETICAS UTILIZANDO CHECKBOX
 
OPERACIONES ARITMETICAS UTILIZANDO CHECKBOX
OPERACIONES ARITMETICAS UTILIZANDO CHECKBOX OPERACIONES ARITMETICAS UTILIZANDO CHECKBOX
OPERACIONES ARITMETICAS UTILIZANDO CHECKBOX
 
Perales tutorial
Perales tutorialPerales tutorial
Perales tutorial
 
Curso android studio
Curso android studioCurso android studio
Curso android studio
 
Curso android studio
Curso android studioCurso android studio
Curso android studio
 
Manual de android
Manual de androidManual de android
Manual de android
 
Suma,resta,multiplicacion
Suma,resta,multiplicacionSuma,resta,multiplicacion
Suma,resta,multiplicacion
 
Laboratorio3 check box
Laboratorio3 check boxLaboratorio3 check box
Laboratorio3 check box
 
Sueldo final
Sueldo finalSueldo final
Sueldo final
 
Sueldo final
Sueldo finalSueldo final
Sueldo final
 
Sueldo final
Sueldo finalSueldo final
Sueldo final
 
Presentacion
PresentacionPresentacion
Presentacion
 
Presentacion(2)
Presentacion(2)Presentacion(2)
Presentacion(2)
 
Presentacion
PresentacionPresentacion
Presentacion
 
Manual de aplicaciones Evelyn Nieto
Manual de aplicaciones Evelyn NietoManual de aplicaciones Evelyn Nieto
Manual de aplicaciones Evelyn Nieto
 
Tutorial Nro 1 de Desarrollo de Aplicaciones Móviles con Android
Tutorial Nro 1 de Desarrollo de Aplicaciones Móviles con AndroidTutorial Nro 1 de Desarrollo de Aplicaciones Móviles con Android
Tutorial Nro 1 de Desarrollo de Aplicaciones Móviles con Android
 
Netbeans ide
Netbeans ideNetbeans ide
Netbeans ide
 
Aplicación móvil
Aplicación móvilAplicación móvil
Aplicación móvil
 

Mehr von Eduardo Medina

Mehr von Eduardo Medina (20)

Triptico 2 parte
Triptico 2 parteTriptico 2 parte
Triptico 2 parte
 
Triptico 1 parte
Triptico 1 parteTriptico 1 parte
Triptico 1 parte
 
Presentación
Presentación Presentación
Presentación
 
Multiplicacion y divicion edhiel
Multiplicacion y divicion edhielMultiplicacion y divicion edhiel
Multiplicacion y divicion edhiel
 
Practica 4 edhiel
Practica 4 edhielPractica 4 edhiel
Practica 4 edhiel
 
Practica 5 edhiel
Practica 5 edhielPractica 5 edhiel
Practica 5 edhiel
 
Practica 6 edhiel
Practica 6 edhielPractica 6 edhiel
Practica 6 edhiel
 
Practica 8 edhiel
Practica 8 edhielPractica 8 edhiel
Practica 8 edhiel
 
MAPA CONCEPTUAL
MAPA CONCEPTUALMAPA CONCEPTUAL
MAPA CONCEPTUAL
 
Tutorial eclipse
Tutorial eclipseTutorial eclipse
Tutorial eclipse
 
Tutorial de eclipse
Tutorial de eclipseTutorial de eclipse
Tutorial de eclipse
 
manual de eclipse
manual de eclipse manual de eclipse
manual de eclipse
 
Cetis 109
Cetis 109Cetis 109
Cetis 109
 
Cetis 109 (1)
Cetis 109 (1)Cetis 109 (1)
Cetis 109 (1)
 
Practica 11 12 13 14 15 aranza y edhiel
Practica 11 12 13 14 15 aranza y edhielPractica 11 12 13 14 15 aranza y edhiel
Practica 11 12 13 14 15 aranza y edhiel
 
Edhiel medina
Edhiel medinaEdhiel medina
Edhiel medina
 
Practica 8 edhiel_aranza
Practica 8 edhiel_aranzaPractica 8 edhiel_aranza
Practica 8 edhiel_aranza
 
Practica 7 edhiel_aranza
Practica 7 edhiel_aranzaPractica 7 edhiel_aranza
Practica 7 edhiel_aranza
 
Practica 6 edhiel_aranza
Practica 6 edhiel_aranzaPractica 6 edhiel_aranza
Practica 6 edhiel_aranza
 
Practica 5 edhiel_y_aranza
Practica 5 edhiel_y_aranzaPractica 5 edhiel_y_aranza
Practica 5 edhiel_y_aranza
 

Kürzlich hochgeladen

ELABORACION DE GOMITAS , dulces, terapeuticas y con alcohol
ELABORACION DE GOMITAS , dulces, terapeuticas y con alcoholELABORACION DE GOMITAS , dulces, terapeuticas y con alcohol
ELABORACION DE GOMITAS , dulces, terapeuticas y con alcoholalejandroguzman330559
 
FOLLETO FODMAPS para indicar mejores alimentos
FOLLETO FODMAPS para indicar mejores alimentosFOLLETO FODMAPS para indicar mejores alimentos
FOLLETO FODMAPS para indicar mejores alimentosnutmargaritasolis
 
deshidratacinehidratacionenpediatria2023-240204000209-ae429ba6.pptx
deshidratacinehidratacionenpediatria2023-240204000209-ae429ba6.pptxdeshidratacinehidratacionenpediatria2023-240204000209-ae429ba6.pptx
deshidratacinehidratacionenpediatria2023-240204000209-ae429ba6.pptxsalazarsilverio074
 
Batidos y jugos saludables FrutiFresh.pdf
Batidos y jugos saludables FrutiFresh.pdfBatidos y jugos saludables FrutiFresh.pdf
Batidos y jugos saludables FrutiFresh.pdfAndrés Tunubalá
 
Recetario royal prestige pdf para una mejor cocina desde casa!
Recetario royal prestige pdf para una mejor cocina desde casa!Recetario royal prestige pdf para una mejor cocina desde casa!
Recetario royal prestige pdf para una mejor cocina desde casa!px522kdw4p
 
Biosintesis de la Leche presentación ppp
Biosintesis de la Leche presentación pppBiosintesis de la Leche presentación ppp
Biosintesis de la Leche presentación pppAngelica Ushiña
 
yodo -,caracteristicas y para que sirve.
yodo -,caracteristicas y para que sirve.yodo -,caracteristicas y para que sirve.
yodo -,caracteristicas y para que sirve.equispec432
 
Fisiopatología_Renal_Fundamentos_Cuarta_edición_Helmut_Rennke_Bradley (1).pdf
Fisiopatología_Renal_Fundamentos_Cuarta_edición_Helmut_Rennke_Bradley (1).pdfFisiopatología_Renal_Fundamentos_Cuarta_edición_Helmut_Rennke_Bradley (1).pdf
Fisiopatología_Renal_Fundamentos_Cuarta_edición_Helmut_Rennke_Bradley (1).pdfNATHALIENATIUSHKAESP
 
Auditorias Puntos Importantes SQF en industria de alimentos
Auditorias Puntos Importantes SQF en industria de alimentosAuditorias Puntos Importantes SQF en industria de alimentos
Auditorias Puntos Importantes SQF en industria de alimentosVictor Manuel Cardona Morales
 
MODELO DE ALIMENTACION actualmente 2024v
MODELO DE ALIMENTACION actualmente 2024vMODELO DE ALIMENTACION actualmente 2024v
MODELO DE ALIMENTACION actualmente 2024vjonathanscortesramos
 
4° UNIDAD 2 SALUD,ALIMENTACIÓN Y DÍA DE LA MADRE (1) (3).pdf
4° UNIDAD 2 SALUD,ALIMENTACIÓN Y DÍA DE LA MADRE (1) (3).pdf4° UNIDAD 2 SALUD,ALIMENTACIÓN Y DÍA DE LA MADRE (1) (3).pdf
4° UNIDAD 2 SALUD,ALIMENTACIÓN Y DÍA DE LA MADRE (1) (3).pdfDianakiasPerez
 

Kürzlich hochgeladen (11)

ELABORACION DE GOMITAS , dulces, terapeuticas y con alcohol
ELABORACION DE GOMITAS , dulces, terapeuticas y con alcoholELABORACION DE GOMITAS , dulces, terapeuticas y con alcohol
ELABORACION DE GOMITAS , dulces, terapeuticas y con alcohol
 
FOLLETO FODMAPS para indicar mejores alimentos
FOLLETO FODMAPS para indicar mejores alimentosFOLLETO FODMAPS para indicar mejores alimentos
FOLLETO FODMAPS para indicar mejores alimentos
 
deshidratacinehidratacionenpediatria2023-240204000209-ae429ba6.pptx
deshidratacinehidratacionenpediatria2023-240204000209-ae429ba6.pptxdeshidratacinehidratacionenpediatria2023-240204000209-ae429ba6.pptx
deshidratacinehidratacionenpediatria2023-240204000209-ae429ba6.pptx
 
Batidos y jugos saludables FrutiFresh.pdf
Batidos y jugos saludables FrutiFresh.pdfBatidos y jugos saludables FrutiFresh.pdf
Batidos y jugos saludables FrutiFresh.pdf
 
Recetario royal prestige pdf para una mejor cocina desde casa!
Recetario royal prestige pdf para una mejor cocina desde casa!Recetario royal prestige pdf para una mejor cocina desde casa!
Recetario royal prestige pdf para una mejor cocina desde casa!
 
Biosintesis de la Leche presentación ppp
Biosintesis de la Leche presentación pppBiosintesis de la Leche presentación ppp
Biosintesis de la Leche presentación ppp
 
yodo -,caracteristicas y para que sirve.
yodo -,caracteristicas y para que sirve.yodo -,caracteristicas y para que sirve.
yodo -,caracteristicas y para que sirve.
 
Fisiopatología_Renal_Fundamentos_Cuarta_edición_Helmut_Rennke_Bradley (1).pdf
Fisiopatología_Renal_Fundamentos_Cuarta_edición_Helmut_Rennke_Bradley (1).pdfFisiopatología_Renal_Fundamentos_Cuarta_edición_Helmut_Rennke_Bradley (1).pdf
Fisiopatología_Renal_Fundamentos_Cuarta_edición_Helmut_Rennke_Bradley (1).pdf
 
Auditorias Puntos Importantes SQF en industria de alimentos
Auditorias Puntos Importantes SQF en industria de alimentosAuditorias Puntos Importantes SQF en industria de alimentos
Auditorias Puntos Importantes SQF en industria de alimentos
 
MODELO DE ALIMENTACION actualmente 2024v
MODELO DE ALIMENTACION actualmente 2024vMODELO DE ALIMENTACION actualmente 2024v
MODELO DE ALIMENTACION actualmente 2024v
 
4° UNIDAD 2 SALUD,ALIMENTACIÓN Y DÍA DE LA MADRE (1) (3).pdf
4° UNIDAD 2 SALUD,ALIMENTACIÓN Y DÍA DE LA MADRE (1) (3).pdf4° UNIDAD 2 SALUD,ALIMENTACIÓN Y DÍA DE LA MADRE (1) (3).pdf
4° UNIDAD 2 SALUD,ALIMENTACIÓN Y DÍA DE LA MADRE (1) (3).pdf
 

Practica 7 edhiel