SlideShare una empresa de Scribd logo
1 de 6
CETIS 109
*CRUZ MORALES AMILCAR GAMALIEL
*SALAZAR ORTEGA ANGEL FERNANO
4° AM PROGRAMACION
DESARROLLA APLICACIONES MOVILES
MCA MARGARITA ROMERO ALVARADO
1) INICIAMOS ECLIPSE
2) SELECCIONAMOS
FILE->NEW->ANDROIDAPPLICATIONPROJECT
3) EN LA VENTANA QUE APARECE SE PONDRA EL
NOMBRE DEL PROGRAMA
4) DESPUES SE CONTINUARA DANDO NEXT> HASTA
QUE LLEGUE A FINISH DESPUES DE QUE CARGE TE
APARECERA EL GRAFICO DE TU PROGRAMA
TextView Medium
ID: @+id/textView1
TEXT: Dame el Sueldo
Texto Plano
@+id/sueldo
HINT: SUELDO
Button
@+id/button1
TEXT: Calcular
ON CLICK: calcular
TextView Medium
@+id/textView2
ISPT 16%
Texto Plano
@+id/ispt
ISPT 16%
TextView Medium
@+id/textView3
salario total
Texto Plano
@+id/salario
Salario Total=Sueldo-ISPT
package com.example.programatres;
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 calcular (View v){
EditText s=(EditText) FindViewById (R.id.sueldo);
TextView i=(TextView) FindViewById (R.id.ispt);
TextView sa=(TextView) FindViewById (R.id.salario);
double su=Double.parseDouble(s.getText().toString());
double is=su*0.16;
double st=su-is;
i.setText(String.valueof(is));
Sa.setText(String.valueof(st));
}
El programa terminado tiene que ser capaz de obtener el sueldo de una persona quitándole
el ISOPT del 16% al sueldo.
OPINION PERSONAL
NOS FACILITA EL USO DE CODIGOS Y TAMBIEN
AYUDA A LA PERSONALIZACION DE SOFTWARE. Y
NOS PERMITE HACER EMULADORES

Más contenido relacionado

La actualidad más candente (15)

Programa5
Programa5Programa5
Programa5
 
U3 - Act1
U3 - Act1U3 - Act1
U3 - Act1
 
Eclipse programa2
Eclipse programa2Eclipse programa2
Eclipse programa2
 
Programa7
Programa7Programa7
Programa7
 
Programa12
Programa12Programa12
Programa12
 
Presentación1
Presentación1Presentación1
Presentación1
 
Programa14
Programa14Programa14
Programa14
 
14
1414
14
 
Programa 14
Programa 14Programa 14
Programa 14
 
Como insertar
Como insertarComo insertar
Como insertar
 
Programa 14
Programa 14Programa 14
Programa 14
 
Creación de la conexión de la base de
Creación de la conexión de la base deCreación de la conexión de la base de
Creación de la conexión de la base de
 
Programa52
Programa52Programa52
Programa52
 
Programa 3
Programa 3Programa 3
Programa 3
 
Programa5
Programa5Programa5
Programa5
 

Destacado

Trabajo powerb
Trabajo powerbTrabajo powerb
Trabajo powerbwilly1218
 
Welcome to cars world
Welcome to cars worldWelcome to cars world
Welcome to cars worldJhonatan Toro
 
Cee 311(5)
Cee 311(5)Cee 311(5)
Cee 311(5)apudgr8
 
Cee 311(4)
Cee 311(4)Cee 311(4)
Cee 311(4)apudgr8
 
Diapositivas de el juego ludico
Diapositivas de el juego ludicoDiapositivas de el juego ludico
Diapositivas de el juego ludicoalejosjose
 
Cee311(11)
Cee311(11)Cee311(11)
Cee311(11)apudgr8
 
Cee 311(6)
Cee 311(6)Cee 311(6)
Cee 311(6)apudgr8
 
Cee311(12&13)
Cee311(12&13)Cee311(12&13)
Cee311(12&13)apudgr8
 
Cee311(14)
Cee311(14)Cee311(14)
Cee311(14)apudgr8
 
Recipe collection 27
Recipe collection 27Recipe collection 27
Recipe collection 27Sal Lie
 
Cee 312(1)
Cee 312(1)Cee 312(1)
Cee 312(1)apudgr8
 
Cee 311(3)
Cee 311(3)Cee 311(3)
Cee 311(3)apudgr8
 

Destacado (13)

Trabajo powerb
Trabajo powerbTrabajo powerb
Trabajo powerb
 
Welcome to cars world
Welcome to cars worldWelcome to cars world
Welcome to cars world
 
Cee 311(5)
Cee 311(5)Cee 311(5)
Cee 311(5)
 
Programa 4
Programa 4Programa 4
Programa 4
 
Cee 311(4)
Cee 311(4)Cee 311(4)
Cee 311(4)
 
Diapositivas de el juego ludico
Diapositivas de el juego ludicoDiapositivas de el juego ludico
Diapositivas de el juego ludico
 
Cee311(11)
Cee311(11)Cee311(11)
Cee311(11)
 
Cee 311(6)
Cee 311(6)Cee 311(6)
Cee 311(6)
 
Cee311(12&13)
Cee311(12&13)Cee311(12&13)
Cee311(12&13)
 
Cee311(14)
Cee311(14)Cee311(14)
Cee311(14)
 
Recipe collection 27
Recipe collection 27Recipe collection 27
Recipe collection 27
 
Cee 312(1)
Cee 312(1)Cee 312(1)
Cee 312(1)
 
Cee 311(3)
Cee 311(3)Cee 311(3)
Cee 311(3)
 

Similar a Programa 3 (20)

Programa3 eclipse
Programa3 eclipsePrograma3 eclipse
Programa3 eclipse
 
Practica 4 edhiel
Practica 4 edhielPractica 4 edhiel
Practica 4 edhiel
 
Programa aa7
Programa aa7Programa aa7
Programa aa7
 
Programa 7
Programa 7Programa 7
Programa 7
 
Programa 7 eclipse
Programa 7 eclipsePrograma 7 eclipse
Programa 7 eclipse
 
Programa4
Programa4Programa4
Programa4
 
Programa
ProgramaPrograma
Programa
 
Programa 4
Programa 4Programa 4
Programa 4
 
Programa8
Programa8Programa8
Programa8
 
Programa 8
Programa 8Programa 8
Programa 8
 
Programa 9
Programa 9Programa 9
Programa 9
 
Presentacion9
Presentacion9Presentacion9
Presentacion9
 
Programa 14
Programa 14Programa 14
Programa 14
 
Programa5
Programa5Programa5
Programa5
 
Programa 5
Programa 5Programa 5
Programa 5
 
Programa32
Programa32Programa32
Programa32
 
Presentaciónprograma10
 Presentaciónprograma10 Presentaciónprograma10
Presentaciónprograma10
 
Programa 6
Programa 6Programa 6
Programa 6
 
Programa 6 de Eclipse
Programa 6 de EclipsePrograma 6 de Eclipse
Programa 6 de Eclipse
 
Presentacion1
Presentacion1Presentacion1
Presentacion1
 

Más de valeangel123 (19)

Programa 8
Programa 8Programa 8
Programa 8
 
Programa6
Programa6Programa6
Programa6
 
Programa 7
Programa 7Programa 7
Programa 7
 
Programa 5
Programa 5Programa 5
Programa 5
 
Programa 2
Programa 2Programa 2
Programa 2
 
Presentacion emuladores
Presentacion emuladoresPresentacion emuladores
Presentacion emuladores
 
Importancia de los dispositivos moviles
Importancia de los dispositivos movilesImportancia de los dispositivos moviles
Importancia de los dispositivos moviles
 
Hola mundo
Hola mundoHola mundo
Hola mundo
 
Emuladores
EmuladoresEmuladores
Emuladores
 
Eclipse 1 3
Eclipse 1 3Eclipse 1 3
Eclipse 1 3
 
Cuestionario
CuestionarioCuestionario
Cuestionario
 
Amilcar corregido
Amilcar corregidoAmilcar corregido
Amilcar corregido
 
Amilcar
AmilcarAmilcar
Amilcar
 
Programa6
Programa6Programa6
Programa6
 
Programa 7
Programa 7Programa 7
Programa 7
 
Programa 5
Programa 5Programa 5
Programa 5
 
Programa 4
Programa 4Programa 4
Programa 4
 
Programa 3
Programa 3Programa 3
Programa 3
 
Programa 2
Programa 2Programa 2
Programa 2
 

Programa 3

  • 1. CETIS 109 *CRUZ MORALES AMILCAR GAMALIEL *SALAZAR ORTEGA ANGEL FERNANO 4° AM PROGRAMACION DESARROLLA APLICACIONES MOVILES MCA MARGARITA ROMERO ALVARADO
  • 2. 1) INICIAMOS ECLIPSE 2) SELECCIONAMOS FILE->NEW->ANDROIDAPPLICATIONPROJECT 3) EN LA VENTANA QUE APARECE SE PONDRA EL NOMBRE DEL PROGRAMA 4) DESPUES SE CONTINUARA DANDO NEXT> HASTA QUE LLEGUE A FINISH DESPUES DE QUE CARGE TE APARECERA EL GRAFICO DE TU PROGRAMA
  • 3. TextView Medium ID: @+id/textView1 TEXT: Dame el Sueldo Texto Plano @+id/sueldo HINT: SUELDO Button @+id/button1 TEXT: Calcular ON CLICK: calcular TextView Medium @+id/textView2 ISPT 16% Texto Plano @+id/ispt ISPT 16% TextView Medium @+id/textView3 salario total Texto Plano @+id/salario Salario Total=Sueldo-ISPT
  • 4. package com.example.programatres; 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 calcular (View v){ EditText s=(EditText) FindViewById (R.id.sueldo); TextView i=(TextView) FindViewById (R.id.ispt); TextView sa=(TextView) FindViewById (R.id.salario); double su=Double.parseDouble(s.getText().toString()); double is=su*0.16; double st=su-is; i.setText(String.valueof(is)); Sa.setText(String.valueof(st)); }
  • 5. El programa terminado tiene que ser capaz de obtener el sueldo de una persona quitándole el ISOPT del 16% al sueldo.
  • 6. OPINION PERSONAL NOS FACILITA EL USO DE CODIGOS Y TAMBIEN AYUDA A LA PERSONALIZACION DE SOFTWARE. Y NOS PERMITE HACER EMULADORES