public string GetEmail(){ return this.email;}
public string GetPassword(){ return this.password;}
public string GetName(){ return this.name;}
public string GetEstudio(){ return this.estudio;}
public int GetEdad(){ return this.edad;}
public void SetEmail(string newEmail) { this.email = newEmail;}
public void SetPassword(string newPassword) { this.password = newPassword;}
public void SetName(string newName) { this.name = newName;}
public void Setestudio(string newEstudio) { this.estudio = newEstudio;}
public void SetEdad(int newEdad) { this.edad = newEdad;}
Console.WriteLine(":: TUS DATOS ::");
Console.WriteLine("Nombre:" +this.name);
public void SetNewUser(string newEmail, string newPassword,string newName,string newEstudio,int newEdad)
this.password = newPassword;
this.estudio = newEstudio;
public void FormNewUser()
Console.WriteLine("Correo: ");
string cor = Console.ReadLine();
Console.WriteLine("Contraseña: ");
string con = Console.ReadLine();
Console.WriteLine("Nombre: ");
string nom = Console.ReadLine();
Console.WriteLine("Estudio: ");
string est = Console.ReadLine();
Console.WriteLine("Edad: ");
int ege = Int32.Parse(Console.ReadLine());
this.SetNewUser(cor,con,nom,est,ege);
public static int[] test = new int [4];
public static int RAPPY = test [0];
public static int UBER = test [1];
public static int QUEO = test [2];
public static int DOGHERO = test [3];
public static string[] NOMBRES = {" RAPPI","UBER","QUEO","DOGHERO"};
public static string resp1;
public static string resp2;
public static string resp3;
public static string resp4;
public static string resp5;
public static string resp6;
public static string result;
public static INCHAMBA[] inchamba = new INCHAMBA[5];
public static int MAYOR=0;
public static void Main()
for (int i =0; i < inchamba.Length; i++)
inchamba[i] = new INCHAMBA();
inchamba[0].SetNewUser("sergio@correo.com", "12345", "Sergio","Ingeniería Mecatrónica",27);
inchamba[1].SetNewUser("mariana@correo.com", "456123","Mariana","Ingeniería Biomédica",20);
inchamba[2].SetNewUser("humberto@correo.com", "963369","Humberto","Ingeniería Sistemas",40);
contador = contador + 1 ;
Console.WriteLine(":: BIENVENIDO A CHAMBA ::");
Console.WriteLine("1.Ingresar");
Console.WriteLine("2.Registrarse");
Console.WriteLine("0.Salir");
Console.WriteLine("Ingrese opción:");
optio = Int32.Parse(Console.ReadLine());
Console.WriteLine("------");
Console.WriteLine("Opción incorrecta");
Console.WriteLine("Correo:");
emailUser = Console.ReadLine();
Console.WriteLine("Contraseña:");
pass = Console.ReadLine();
login = Login(emailUser, pass);
pos = GetPositionUser(emailUser);
Console.WriteLine(": MENU :");
Console.WriteLine("1.Ver mis datos");
Console.WriteLine("2.Realizar Test");
Console.WriteLine("3.Ver APPS");
Console.WriteLine("0.Atrás");
Console.WriteLine("Ingrese opción:");
option = Int32.Parse(Console.ReadLine());
Console.WriteLine(":: APPS ::");
Console.WriteLine(" RAPPI ");
Console.WriteLine(" UBER ");
Console.WriteLine(" QUEO ");
Console.WriteLine(" DOGHERO ");
resp1 = Console.ReadLine();
Console.WriteLine("Cerrar sesión");
Console.WriteLine("Opcion incorrecta");
Console.WriteLine("Nombre: "+ inchamba[pos].GetName());
Console.WriteLine("Edad: "+ inchamba[pos].GetEdad());
Console.WriteLine("Email: "+ inchamba[pos].GetEmail());
Console.WriteLine("Estudio: "+ inchamba[pos].GetEstudio());
resp1 = Console.ReadLine();
Console.WriteLine(":: TUS RESPUESTAS TEST CHAMBA ::");
Console.WriteLine("¿Te gustaría trabajar? Y/N" );
resp1 = Console.ReadLine();
Console.WriteLine("¿Dispone de algún tipo de transporte? Y/N :" );
resp3 = Console.ReadLine();
Console.WriteLine("¿Has tenido comparendos? Y/N :" );
resp4 = Console.ReadLine();
Console.WriteLine("¿Te gustan los animales? Y/N :" );
resp5 = Console.ReadLine();
Console.WriteLine("¿Tienes algún tipo de discapacidad? Y/N :");
resp6 = Console.ReadLine();
Console.WriteLine("--------------------");
for (int i= 1; i<4; i ++)
Console.WriteLine("Tu mejor opción es : " + result) ;
Console.WriteLine(":: ::");
inchamba[contador].FormNewUser();
public static bool Login(string emailUserR, string passwordUser)
for (int i =0; i < inchamba.Length; i++)
if (inchamba[i].GetEmail() == emailUserR && inchamba[i].GetPassword() == passwordUser)
Console.WriteLine("Datos inválidos");
public static string GetUserName(string emailUserR)
for (int i =0; i < inchamba.Length; i++)
if (inchamba[i].GetEmail() == emailUserR)
return inchamba[i].GetName();
return "Datos inválidos";
public static int GetPositionUser(string emailUserR)
for (int i =0; i < inchamba.Length; i++)
if (inchamba[i].GetEmail() == emailUserR)