public static void Main()
double hoursWorked, hourlyRate;
Console.WriteLine("Please enter the number of hours: ");
hoursWorked = double.Parse(Console.ReadLine());
Console.WriteLine("Please enter the hourly rate of pay: ");
hourlyRate = double.Parse(Console.ReadLine());
Console.WriteLine("$" + Math.Round(GrossWageCalculator(hoursWorked, hourlyRate), 2));
static double GrossWageCalculator(double numberOfHours, double hourlyRate)
grossWage = (numberOfHours <= 40) ? (numberOfHours * hourlyRate) : (((numberOfHours - 40) * (hourlyRate * 1.5)) + ((40) * hourlyRate));