public static void Main()
double hoursWorked, hourlyPayRate, grossPay, taxPercent, taxWitheld, netPay;
Console.WriteLine("Please enter your hours worked ");
hoursWorked = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("Please enter your hourly rate ");
hourlyPayRate = Convert.ToDouble(Console.ReadLine());
grossPay = hoursWorked * hourlyPayRate;
taxPercent = (grossPay <= 300.00) ? .1 : .12;
taxWitheld = taxPercent * grossPay;
netPay = grossPay - taxWitheld;
Console.WriteLine("Gross pay: \t\t{0}\nTax percent: \t{1}%\nTax with held \t{2}\nNet pay: \t\t{3} ", grossPay.ToString("C"), (taxPercent*100), taxWitheld.ToString("C"), netPay.ToString("C"));