Professional Documents
Culture Documents
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package arreglos;
import javax.swing.JOptionPane;
/**
*
* @author Coordinacion_IIT
*/
public class ARREGLOS {
char s,Profession;
Integer N,Age,c1=0,c2=0,i;
String Name,nombre;
Name=JOptionPane.showInputDialog(null,"Ingrese un
Nombre","",JOptionPane.DEFAULT_OPTION);
Age=Integer.parseInt(JOptionPane.showInputDialog(null,"Ingrese Una
Edad","",JOptionPane.DEFAULT_OPTION));
Profession=(char)Integer.parseInt(JOptionPane.showInputDialog(null,"\n "+
"\n 1 - Administrador de Empresas"+
"\n 2 - Abogado "+
"\n 3 - Analista/Programador "+
"\n 4 - Contador "+
"\n 5 - Secretaria "+
"\n 6 - Oficinista "+
"\n 7 - Gerente "+
"\n 8 - Relacionista Publico "+
"\n 9 - Otros "+
"\n","Cargos de la Empresa",JOptionPane.DEFAULT_OPTION));
if(Profession==1){
Profesion[i]="Administrador de Empresas";
}else if(Profession==2){
Profesion[i]="Abogado";
}else if(Profession==3){
Profesion[i]="Analista/Programador";
}else if(Profession==4){
Profesion[i]="Contador";
}else if(Profession==5){
Profesion[i]="Secretaria";
}else if(Profession==6){
Profesion[i]="Oficinista";
}else if(Profession==7){
Profesion[i]="Gerente";
}else if(Profession==8){
Profesion[i]="Relacionista Publico";
}else{
Profesion[i]="Otros";
}
nombre=JOptionPane.showInputDialog(null,"Ingrese un Nombre");
for (int i =0;i<Nombre.length;i++){
if(Nombre[i].equals(nombre.toUpperCase())){
}
}
}
public static void main(String[] args) {
ARREGLOS objeto=new ARREGLOS();
objeto.datos();