SlideShare una empresa de Scribd logo
1 de 21
CETIS 109
VILLANUEVA EPIGMENIO KARLA
ESTEFANIA
4° AM
PROGRAMACION
DESARROLLA APLICACIONES
MOVILES
AULA 27
MCA MARGARITA ROMERO
ALVARADO
*UN NUMERO ELEVADO AL CUADRADO*
Package com.example.programa10;
Import android.os.Bundle;
Import android.app.Activity;
Import android.view.Menu;
Import android.view.View;
Import android.widget.EditText;
Import android.widget.TextView;
Public class MainActivity extends Activity {
@Override
Protected void onCreate (Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
Public boolean onCreateOptionsMenu(Menu menu) {
// inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
Return true;
}
Public void multiplicar (View view){
EditText et1=(EditText) findViewById (R.id.num1);
TextView sol=(TextView) findViewById (R.id.res);
double n1=Double.parseDouble(et1.getText().toString());
double r;
r=n1*n1;
sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r));
}
}
*YARDAS A CENTIMETROS*
package com.example.programa10;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
public void multiplicar (View view){
EditText et1=(EditText) findViewById (R.id.num1);
TextView sol=(TextView) findViewById (R.id.res);
double n1=Double.parseDouble(et1.getText().toString());
double r;
r=n1*91.44;
sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r));
}
}
*PULGADAS A METROS*
package com.example.programa10;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
public void multiplicar (View view){
EditText et1=(EditText) findViewById (R.id.num1);
TextView sol=(TextView) findViewById (R.id.res);
double n1=Double.parseDouble(et1.getText().toString());
double r;
r=n1*0.0254;
sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r));
}
}
*HORA A MINUTOS*
package com.example.programa10;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
public void multiplicar (View view){
EditText et1=(EditText) findViewById (R.id.num1);
TextView sol=(TextView) findViewById (R.id.res);
double n1=Double.parseDouble(et1.getText().toString());
double r;
r=n1*60;
sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r));
}
}
*MINUTOS A SEGUNDOS*
package com.example.programa10;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
public void multiplicar (View view){
EditText et1=(EditText) findViewById (R.id.num1);
TextView sol=(TextView) findViewById (R.id.res);
double n1=Double.parseDouble(et1.getText().toString());
double r;
r=n1*60;
sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r));
}
}
*HORA A SEGUNDOS*
package com.example.programa10;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
public void multiplicar (View view){
EditText et1=(EditText) findViewById (R.id.num1);
TextView sol=(TextView) findViewById (R.id.res);
double n1=Double.parseDouble(et1.getText().toString());
double r;
r=n1*3600;
sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r));
}
}
*METROS A MILÍMETROS*
package com.example.programa10;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
public void multiplicar (View view){
EditText et1=(EditText) findViewById (R.id.num1);
TextView sol=(TextView) findViewById (R.id.res);
double n1=Double.parseDouble(et1.getText().toString());
double r;
r=n1*1000;
sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r));
}
}
*METROS A PULGADAS*
package com.example.programa10;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
public void multiplicar (View view){
EditText et1=(EditText) findViewById (R.id.num1);
TextView sol=(TextView) findViewById (R.id.res);
double n1=Double.parseDouble(et1.getText().toString());
double r;
r=n1*39.3700787;
sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r));
}
}
*METROS A PIES*
package com.example.programa10;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
public void multiplicar (View view){
EditText et1=(EditText) findViewById (R.id.num1);
TextView sol=(TextView) findViewById (R.id.res);
double n1=Double.parseDouble(et1.getText().toString());
double r;
r=n1*3.2808399;
sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r));
}
}
*METROS A YARDAS*
package com.example.programa10;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
public void multiplicar (View view){
EditText et1=(EditText) findViewById (R.id.num1);
TextView sol=(TextView) findViewById (R.id.res);
double n1=Double.parseDouble(et1.getText().toString());
double r;
r=n1*1.0936133;
sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r));
}
}
*KILÓMETROS A METROS*
package com.example.programa10;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
public void multiplicar (View view){
EditText et1=(EditText) findViewById (R.id.num1);
TextView sol=(TextView) findViewById (R.id.res);
double n1=Double.parseDouble(et1.getText().toString());
double r;
r=n1*1000;
sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r));
}
}
*PULGADAS A CENTÍMETROS*
package com.example.programa10;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
public void multiplicar (View view){
EditText et1=(EditText) findViewById (R.id.num1);
TextView sol=(TextView) findViewById (R.id.res);
double n1=Double.parseDouble(et1.getText().toString());
double r;
r=n1*2.54;
sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r));
}
}
*PIES A METROS*
package com.example.programa10;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
public void multiplicar (View view){
EditText et1=(EditText) findViewById (R.id.num1);
TextView sol=(TextView) findViewById (R.id.res);
double n1=Double.parseDouble(et1.getText().toString());
double r;
r=n1*0.3048;
sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r));
}
}
*TONELADAS A KILOGRAMOS*
package com.example.programa10;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
public void multiplicar (View view){
EditText et1=(EditText) findViewById (R.id.num1);
TextView sol=(TextView) findViewById (R.id.res);
double n1=Double.parseDouble(et1.getText().toString());
double r;
r=n1*1000;
sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r));
}
}
*YARDAS A CENTÍMETROS*
package com.example.programa10;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
public void multiplicar (View view){
EditText et1=(EditText) findViewById (R.id.num1);
TextView sol=(TextView) findViewById (R.id.res);
double n1=Double.parseDouble(et1.getText().toString());
double r;
r=n1*91.44;
sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r));
}
}
*PIES A MILLAS*
package com.example.programa10;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
public void multiplicar (View view){
EditText et1=(EditText) findViewById (R.id.num1);
TextView sol=(TextView) findViewById (R.id.res);
double n1=Double.parseDouble(et1.getText().toString());
double r;
r=n1*0.000189393939;
sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r));
}
}
*MILLAS A PIES*
package com.example.programa10;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
public void multiplicar (View view){
EditText et1=(EditText) findViewById (R.id.num1);
TextView sol=(TextView) findViewById (R.id.res);
double n1=Double.parseDouble(et1.getText().toString());
double r;
r=n1*5280;
sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r));
}
}
*PIES A CENTÍMETROS*
package com.example.programa10;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
public void multiplicar (View view){
EditText et1=(EditText) findViewById (R.id.num1);
TextView sol=(TextView) findViewById (R.id.res);
double n1=Double.parseDouble(et1.getText().toString());
double r;
r=n1*30.48;
sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r));
}
}
*CENTÍMETROS CUBICOS A MILITROS*
package com.example.programa10;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
public void multiplicar (View view){
EditText et1=(EditText) findViewById (R.id.num1);
TextView sol=(TextView) findViewById (R.id.res);
double n1=Double.parseDouble(et1.getText().toString());
double r;
r=n1*1;
sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r));
}
}
*METROS CÚBICOS A LITROS*
package com.example.programa10;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
public void multiplicar (View view){
EditText et1=(EditText) findViewById (R.id.num1);
TextView sol=(TextView) findViewById (R.id.res);
double n1=Double.parseDouble(et1.getText().toString());
double r;
r=n1*1000;
sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r));
}
}

Más contenido relacionado

La actualidad más candente

Aula 4 herança, sobrescrita de métodos, construtor
Aula 4   herança, sobrescrita de métodos, construtorAula 4   herança, sobrescrita de métodos, construtor
Aula 4 herança, sobrescrita de métodos, construtorRafael Pinheiro
 
13 Java Script - Validação de formulário
13 Java Script  - Validação de formulário13 Java Script  - Validação de formulário
13 Java Script - Validação de formulárioCentro Paula Souza
 
Programação Orientada A Objectos (Poo)
Programação Orientada A Objectos (Poo)Programação Orientada A Objectos (Poo)
Programação Orientada A Objectos (Poo)guest18b3c00
 
Java (Netbeans) - Looping - Object Oriented Programming
Java (Netbeans) - Looping - Object Oriented ProgrammingJava (Netbeans) - Looping - Object Oriented Programming
Java (Netbeans) - Looping - Object Oriented ProgrammingMelina Krisnawati
 
PPT STUNTING PAUD.pptx
PPT STUNTING PAUD.pptxPPT STUNTING PAUD.pptx
PPT STUNTING PAUD.pptxAdityaMobi1
 
Makalah kelompok Siap Presentasi Struktur Data
Makalah kelompok Siap Presentasi Struktur DataMakalah kelompok Siap Presentasi Struktur Data
Makalah kelompok Siap Presentasi Struktur DataBina Sarana Informatika
 
Penggunaan KMS
Penggunaan KMSPenggunaan KMS
Penggunaan KMSRyaniegizi
 

La actualidad más candente (8)

Aula 4 herança, sobrescrita de métodos, construtor
Aula 4   herança, sobrescrita de métodos, construtorAula 4   herança, sobrescrita de métodos, construtor
Aula 4 herança, sobrescrita de métodos, construtor
 
13 Java Script - Validação de formulário
13 Java Script  - Validação de formulário13 Java Script  - Validação de formulário
13 Java Script - Validação de formulário
 
Programação Orientada A Objectos (Poo)
Programação Orientada A Objectos (Poo)Programação Orientada A Objectos (Poo)
Programação Orientada A Objectos (Poo)
 
Java (Netbeans) - Looping - Object Oriented Programming
Java (Netbeans) - Looping - Object Oriented ProgrammingJava (Netbeans) - Looping - Object Oriented Programming
Java (Netbeans) - Looping - Object Oriented Programming
 
PPT STUNTING PAUD.pptx
PPT STUNTING PAUD.pptxPPT STUNTING PAUD.pptx
PPT STUNTING PAUD.pptx
 
Makalah kelompok Siap Presentasi Struktur Data
Makalah kelompok Siap Presentasi Struktur DataMakalah kelompok Siap Presentasi Struktur Data
Makalah kelompok Siap Presentasi Struktur Data
 
Atalhos de teclado
Atalhos de tecladoAtalhos de teclado
Atalhos de teclado
 
Penggunaan KMS
Penggunaan KMSPenggunaan KMS
Penggunaan KMS
 

Destacado

Kegemaran saya iqmal 2 b
Kegemaran saya iqmal 2 bKegemaran saya iqmal 2 b
Kegemaran saya iqmal 2 bMuhamadIqmal
 
Queen of Clubs
Queen of ClubsQueen of Clubs
Queen of Clubsfrankinla2
 
ARCHE - EXECUTIVE SYSTEM - BLULINE ARREDI
ARCHE - EXECUTIVE SYSTEM - BLULINE ARREDI ARCHE - EXECUTIVE SYSTEM - BLULINE ARREDI
ARCHE - EXECUTIVE SYSTEM - BLULINE ARREDI BLULINE
 
GAP - OPERATING SYSTEM - BLULINE ARREDI
GAP - OPERATING SYSTEM - BLULINE ARREDIGAP - OPERATING SYSTEM - BLULINE ARREDI
GAP - OPERATING SYSTEM - BLULINE ARREDIBLULINE
 
What your Ring Reveals about you? “Infographic”
What your Ring Reveals about you? “Infographic”What your Ring Reveals about you? “Infographic”
What your Ring Reveals about you? “Infographic”classiccreations
 
What your Ring Reveals about you? “Infographic”
What your Ring Reveals about you? “Infographic”What your Ring Reveals about you? “Infographic”
What your Ring Reveals about you? “Infographic”classiccreations
 
презентация Microsoft power point
презентация Microsoft power pointпрезентация Microsoft power point
презентация Microsoft power pointannatishenko
 
NCMA Government Property
NCMA Government PropertyNCMA Government Property
NCMA Government PropertyPeggy Burchardt
 
лекц 9.10 pptx
лекц 9.10 pptxлекц 9.10 pptx
лекц 9.10 pptxoyunsuren84
 

Destacado (18)

Kegemaran saya iqmal 2 b
Kegemaran saya iqmal 2 bKegemaran saya iqmal 2 b
Kegemaran saya iqmal 2 b
 
бүлэг 1
бүлэг 1бүлэг 1
бүлэг 1
 
Queen of Clubs
Queen of ClubsQueen of Clubs
Queen of Clubs
 
ARCHE - EXECUTIVE SYSTEM - BLULINE ARREDI
ARCHE - EXECUTIVE SYSTEM - BLULINE ARREDI ARCHE - EXECUTIVE SYSTEM - BLULINE ARREDI
ARCHE - EXECUTIVE SYSTEM - BLULINE ARREDI
 
Лекц№1
Лекц№1Лекц№1
Лекц№1
 
GAP - OPERATING SYSTEM - BLULINE ARREDI
GAP - OPERATING SYSTEM - BLULINE ARREDIGAP - OPERATING SYSTEM - BLULINE ARREDI
GAP - OPERATING SYSTEM - BLULINE ARREDI
 
What your Ring Reveals about you? “Infographic”
What your Ring Reveals about you? “Infographic”What your Ring Reveals about you? “Infographic”
What your Ring Reveals about you? “Infographic”
 
What your Ring Reveals about you? “Infographic”
What your Ring Reveals about you? “Infographic”What your Ring Reveals about you? “Infographic”
What your Ring Reveals about you? “Infographic”
 
Netbeans4
Netbeans4 Netbeans4
Netbeans4
 
презентация Microsoft power point
презентация Microsoft power pointпрезентация Microsoft power point
презентация Microsoft power point
 
NCMA Government Property
NCMA Government PropertyNCMA Government Property
NCMA Government Property
 
бүлэг 4
бүлэг 4бүлэг 4
бүлэг 4
 
лекц 4
лекц 4лекц 4
лекц 4
 
Kidflier6.5
Kidflier6.5Kidflier6.5
Kidflier6.5
 
Celulares
CelularesCelulares
Celulares
 
лекц 1
лекц 1лекц 1
лекц 1
 
бүлэг 2
бүлэг 2бүлэг 2
бүлэг 2
 
лекц 9.10 pptx
лекц 9.10 pptxлекц 9.10 pptx
лекц 9.10 pptx
 

Similar a 20 códigos de eclipse

Similar a 20 códigos de eclipse (20)

20 codigos
20 codigos20 codigos
20 codigos
 
20 Codigos
20 Codigos20 Codigos
20 Codigos
 
HNUH
HNUHHNUH
HNUH
 
Programa 2
Programa 2Programa 2
Programa 2
 
Hola mundo12
Hola mundo12Hola mundo12
Hola mundo12
 
Guardar Android
Guardar AndroidGuardar Android
Guardar Android
 
F2
F2F2
F2
 
CODIGOS
CODIGOS CODIGOS
CODIGOS
 
Code
CodeCode
Code
 
List view languages
List view languagesList view languages
List view languages
 
Android Event and IntentAndroid Event and Intent
Android Event and IntentAndroid Event and IntentAndroid Event and IntentAndroid Event and Intent
Android Event and IntentAndroid Event and Intent
 
Androidppt 1
Androidppt 1Androidppt 1
Androidppt 1
 
Practical
PracticalPractical
Practical
 
Action bar
Action barAction bar
Action bar
 
Hi AndroidAnnotations
Hi AndroidAnnotationsHi AndroidAnnotations
Hi AndroidAnnotations
 
안드로이드 세미나 2
안드로이드 세미나 2안드로이드 세미나 2
안드로이드 세미나 2
 
안드로이드 세미나 2
안드로이드 세미나 2안드로이드 세미나 2
안드로이드 세미나 2
 
Android crashcourse
Android crashcourseAndroid crashcourse
Android crashcourse
 
Curso de Desenvolvimento Mobile - Android - Activities
Curso de Desenvolvimento Mobile - Android - ActivitiesCurso de Desenvolvimento Mobile - Android - Activities
Curso de Desenvolvimento Mobile - Android - Activities
 
Android wear (coding)
Android wear (coding)Android wear (coding)
Android wear (coding)
 

Más de Karla Estefania Villanueva Epigmenio (20)

Investigacion como insertar un vídeo en eclipse
Investigacion como insertar un vídeo en eclipseInvestigacion como insertar un vídeo en eclipse
Investigacion como insertar un vídeo en eclipse
 
Presentación
Presentación Presentación
Presentación
 
Presentación 16
Presentación 16Presentación 16
Presentación 16
 
Presentación 15
Presentación 15Presentación 15
Presentación 15
 
Como insetar una imagen en eclipse
Como insetar una imagen en eclipse Como insetar una imagen en eclipse
Como insetar una imagen en eclipse
 
Programa 11
Programa 11Programa 11
Programa 11
 
Programa 14
Programa 14Programa 14
Programa 14
 
Presentacion 13
Presentacion 13Presentacion 13
Presentacion 13
 
Presentación 12
Presentación 12Presentación 12
Presentación 12
 
Programa 11
Programa 11Programa 11
Programa 11
 
Programa 10
Programa 10Programa 10
Programa 10
 
Programa 9
Programa 9Programa 9
Programa 9
 
Programa 8
Programa 8Programa 8
Programa 8
 
Programa 7 eclipse
Programa 7 eclipsePrograma 7 eclipse
Programa 7 eclipse
 
Programa5
Programa5Programa5
Programa5
 
Programa4
Programa4Programa4
Programa4
 
Programa 6 de Eclipse
Programa 6 de EclipsePrograma 6 de Eclipse
Programa 6 de Eclipse
 
Eclipse
EclipseEclipse
Eclipse
 
Programa2
Programa2 Programa2
Programa2
 
Villanueva epigmenio
Villanueva epigmenio Villanueva epigmenio
Villanueva epigmenio
 

Último

"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 

Último (20)

"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 

20 códigos de eclipse

  • 1. CETIS 109 VILLANUEVA EPIGMENIO KARLA ESTEFANIA 4° AM PROGRAMACION DESARROLLA APLICACIONES MOVILES AULA 27 MCA MARGARITA ROMERO ALVARADO
  • 2. *UN NUMERO ELEVADO AL CUADRADO* Package com.example.programa10; Import android.os.Bundle; Import android.app.Activity; Import android.view.Menu; Import android.view.View; Import android.widget.EditText; Import android.widget.TextView; Public class MainActivity extends Activity { @Override Protected void onCreate (Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override Public boolean onCreateOptionsMenu(Menu menu) { // inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); Return true; } Public void multiplicar (View view){ EditText et1=(EditText) findViewById (R.id.num1); TextView sol=(TextView) findViewById (R.id.res); double n1=Double.parseDouble(et1.getText().toString()); double r; r=n1*n1; sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r)); } }
  • 3. *YARDAS A CENTIMETROS* package com.example.programa10; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } public void multiplicar (View view){ EditText et1=(EditText) findViewById (R.id.num1); TextView sol=(TextView) findViewById (R.id.res); double n1=Double.parseDouble(et1.getText().toString()); double r; r=n1*91.44; sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r)); } }
  • 4. *PULGADAS A METROS* package com.example.programa10; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } public void multiplicar (View view){ EditText et1=(EditText) findViewById (R.id.num1); TextView sol=(TextView) findViewById (R.id.res); double n1=Double.parseDouble(et1.getText().toString()); double r; r=n1*0.0254; sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r)); } }
  • 5. *HORA A MINUTOS* package com.example.programa10; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } public void multiplicar (View view){ EditText et1=(EditText) findViewById (R.id.num1); TextView sol=(TextView) findViewById (R.id.res); double n1=Double.parseDouble(et1.getText().toString()); double r; r=n1*60; sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r)); } }
  • 6. *MINUTOS A SEGUNDOS* package com.example.programa10; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } public void multiplicar (View view){ EditText et1=(EditText) findViewById (R.id.num1); TextView sol=(TextView) findViewById (R.id.res); double n1=Double.parseDouble(et1.getText().toString()); double r; r=n1*60; sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r)); } }
  • 7. *HORA A SEGUNDOS* package com.example.programa10; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } public void multiplicar (View view){ EditText et1=(EditText) findViewById (R.id.num1); TextView sol=(TextView) findViewById (R.id.res); double n1=Double.parseDouble(et1.getText().toString()); double r; r=n1*3600; sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r)); } }
  • 8. *METROS A MILÍMETROS* package com.example.programa10; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } public void multiplicar (View view){ EditText et1=(EditText) findViewById (R.id.num1); TextView sol=(TextView) findViewById (R.id.res); double n1=Double.parseDouble(et1.getText().toString()); double r; r=n1*1000; sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r)); } }
  • 9. *METROS A PULGADAS* package com.example.programa10; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } public void multiplicar (View view){ EditText et1=(EditText) findViewById (R.id.num1); TextView sol=(TextView) findViewById (R.id.res); double n1=Double.parseDouble(et1.getText().toString()); double r; r=n1*39.3700787; sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r)); } }
  • 10. *METROS A PIES* package com.example.programa10; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } public void multiplicar (View view){ EditText et1=(EditText) findViewById (R.id.num1); TextView sol=(TextView) findViewById (R.id.res); double n1=Double.parseDouble(et1.getText().toString()); double r; r=n1*3.2808399; sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r)); } }
  • 11. *METROS A YARDAS* package com.example.programa10; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } public void multiplicar (View view){ EditText et1=(EditText) findViewById (R.id.num1); TextView sol=(TextView) findViewById (R.id.res); double n1=Double.parseDouble(et1.getText().toString()); double r; r=n1*1.0936133; sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r)); } }
  • 12. *KILÓMETROS A METROS* package com.example.programa10; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } public void multiplicar (View view){ EditText et1=(EditText) findViewById (R.id.num1); TextView sol=(TextView) findViewById (R.id.res); double n1=Double.parseDouble(et1.getText().toString()); double r; r=n1*1000; sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r)); } }
  • 13. *PULGADAS A CENTÍMETROS* package com.example.programa10; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } public void multiplicar (View view){ EditText et1=(EditText) findViewById (R.id.num1); TextView sol=(TextView) findViewById (R.id.res); double n1=Double.parseDouble(et1.getText().toString()); double r; r=n1*2.54; sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r)); } }
  • 14. *PIES A METROS* package com.example.programa10; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } public void multiplicar (View view){ EditText et1=(EditText) findViewById (R.id.num1); TextView sol=(TextView) findViewById (R.id.res); double n1=Double.parseDouble(et1.getText().toString()); double r; r=n1*0.3048; sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r)); } }
  • 15. *TONELADAS A KILOGRAMOS* package com.example.programa10; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } public void multiplicar (View view){ EditText et1=(EditText) findViewById (R.id.num1); TextView sol=(TextView) findViewById (R.id.res); double n1=Double.parseDouble(et1.getText().toString()); double r; r=n1*1000; sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r)); } }
  • 16. *YARDAS A CENTÍMETROS* package com.example.programa10; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } public void multiplicar (View view){ EditText et1=(EditText) findViewById (R.id.num1); TextView sol=(TextView) findViewById (R.id.res); double n1=Double.parseDouble(et1.getText().toString()); double r; r=n1*91.44; sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r)); } }
  • 17. *PIES A MILLAS* package com.example.programa10; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } public void multiplicar (View view){ EditText et1=(EditText) findViewById (R.id.num1); TextView sol=(TextView) findViewById (R.id.res); double n1=Double.parseDouble(et1.getText().toString()); double r; r=n1*0.000189393939; sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r)); } }
  • 18. *MILLAS A PIES* package com.example.programa10; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } public void multiplicar (View view){ EditText et1=(EditText) findViewById (R.id.num1); TextView sol=(TextView) findViewById (R.id.res); double n1=Double.parseDouble(et1.getText().toString()); double r; r=n1*5280; sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r)); } }
  • 19. *PIES A CENTÍMETROS* package com.example.programa10; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } public void multiplicar (View view){ EditText et1=(EditText) findViewById (R.id.num1); TextView sol=(TextView) findViewById (R.id.res); double n1=Double.parseDouble(et1.getText().toString()); double r; r=n1*30.48; sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r)); } }
  • 20. *CENTÍMETROS CUBICOS A MILITROS* package com.example.programa10; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } public void multiplicar (View view){ EditText et1=(EditText) findViewById (R.id.num1); TextView sol=(TextView) findViewById (R.id.res); double n1=Double.parseDouble(et1.getText().toString()); double r; r=n1*1; sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r)); } }
  • 21. *METROS CÚBICOS A LITROS* package com.example.programa10; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } public void multiplicar (View view){ EditText et1=(EditText) findViewById (R.id.num1); TextView sol=(TextView) findViewById (R.id.res); double n1=Double.parseDouble(et1.getText().toString()); double r; r=n1*1000; sol.setText(String.valueOf("El cuadrado del numero "+n1+" = "+r)); } }