public static class Constants
public const double HOMBRES = 10.00;
public const double MUJERES = 5.00;
public const double DMUJERESD = 0.50;
public const double VIERNES = 0.00;
public const double DJ = 0.90;
public const double DM = 0.70;
public static void Main(string[] args)
Console.WriteLine("Programa para mostrar el precio de la entrada a una discoteca según el día y el sexo del usuario");
Console.WriteLine("Autor: Muñoz Hernández, Juan Carlos - Carnet: MH20020");
Console.WriteLine("Grupo de Laboratorio: 31\n");
Console.WriteLine("Datos del usuario");
Console.WriteLine("\nGénero:\n\nDigite\t\t\tSi\n1\t\t\tMasculino\n2\t\t\tFemenino");
G = int.Parse(Console.ReadLine());
public static int ValidezGénero(int g)
Console.WriteLine("\nDía:\n\nSi\t\t\tDigite\nLunes\t\t\t1\nMartes\t\t\t2\nMiércoles\t\t3\nJueves\t\t\t4\nViernes\t\t\t5\nSábado\t\t\t6\nDomingo\t\t\t7");
D = int.Parse(Console.ReadLine());
Console.WriteLine("Por favor ingrese un dato correcto");
public static void ValidezDía(int d, int g)
if (d == 1 || d == 2 || d == 3 || d == 4 || d == 5 || d == 6 || d == 7)
Console.WriteLine("Por favor ingrese un dato correcto");
public static double DescuentoMujeres(int d)
if (d == 1 || d == 3 || d == 6)
total = Constants.MUJERES * Constants.DMUJERESD;
Console.WriteLine("\n¡Ladies Night! Las mujeres entran GRATIS el día Viernes");
total = Constants.MUJERES;
public static double DescuentoHombres(int d)
if (d == 2 || d == 4 || d == 7)
total = Constants.HOMBRES * Constants.DM;
total = Constants.HOMBRES * Constants.DJ;
total = Constants.HOMBRES * Constants.DMUJERESD;
total = Constants.HOMBRES;
public static void Imprimir(double total)
Console.WriteLine("\nEl precio de la entrada a la discoteca es: $:{0: 0.00}", total);