using System.Collections.Generic;
public List<string> Nombre;
public List<string> Apellido;
public List<double> Salario;
public List<string> Genero;
public List<double> Renta;
public void llenarDatos(){
Console.WriteLine("Ingrese el Nombre: ");
this.Nombre.Add(Console.ReadLine());
Console.WriteLine("Ingrese el Apellido: ");
this.Apellido.Add(Console.ReadLine());
Console.WriteLine("Ingrese el Edad: ");
this.Edad.Add(int.Parse(Console.ReadLine()));
Console.WriteLine("Ingrese el Salario: ");
this.Salario.Add(double.Parse(Console.ReadLine()));
Console.WriteLine("Ingrese el Genero: ");
this.Genero.Add(Console.ReadLine());
Console.WriteLine("Ingrese el Renta: ");
this.Renta.Add(double.Parse(Console.ReadLine()));
Console.WriteLine("¿Que desea hacer? \n1.Ingresar nueva persona \n2.Personas entre 25 y 40 \n3.Hombres mayores de 24 \n4.Reporte General");
int option = int.Parse(Console.ReadLine());
case 1: this.llenarDatos(); break;
case 2: this.Reporte1(); break;
case 3: this.Reporte2(); break;
case 4: this.ReporteGeneral(); break;
Console.WriteLine("Elija una opcion valida!");
Console.WriteLine("\n\tReporte de Personas entre 25 y 50 años\n");
for(int i = 0; i < this.Edad.Count; i++){
if (this.Edad[i] >= 25 && this.Edad[i] <= 50) {
Console.WriteLine(i + "- " + this.Nombre[i] + " - " + this.Edad[i] + " - $" + this.Salario);
Console.WriteLine("\n\tReporte de Hombres mayores de 24 años\n");
for(int i = 0; i < this.Nombre.Count; i++) {
if (this.Edad[i] > 50 && this.Genero[i] == "Masculino") {
Console.WriteLine(i + "- " + this.Nombre[i] + " - " + this.Edad[i] + " - $" + this.Salario);
public void ReporteGeneral() {
Console.WriteLine("\n\tReporte General\n");
for(int i = 0; i < this.Nombre.Count; i++) {
Console.WriteLine(i + "- " + this.Nombre[i] + " - " + this.Edad[i] + " - $" + this.Salario);