Question: Need help correcting the errors in C#. the errors are inside the pics The program DebugTwo3.cs has syntax and/or logical errors. Determine the problem(s) and




The program DebugTwo3.cs has syntax and/or logical errors. Determine the problem(s) and fix the program. I/ This program computes net weekly pay 1/ based on hours worked, rate per hour, If and 15% withholding using System; using static system. Console; using System. Globalization: class DebugTwo3 \{ static void Main() //15% withholding not 15 const double WITHHOLDING_RATE =15; string hoursAsstring, rateAsstring: double hours, rate; double gross, withholding, net; Write( "Enter the number of hours you worked this week "): hoursAsString = ReadLine ();// reading hours Write("Enter your hourly rate ");//prompting for hourly rate rateAsString = ReadLine(); hours = Convert. ToDouble(hoursAsstring): rate = Convert. ToDouble (rateAsString); gross = hours * rate: withholding = gross * WITHHOLDING_RATE; net = gross - withholding; Writeline( "You worked {} hours at {1} per hour", hours, rate. ToString ("C", CultureInfo. GetcultureInfo("en-US"))); Writeline( "Gross pay is {0}", gross. ToString ("C")); 40 10 Output Enter the number of hours you worl Gross pay is x400.00 Withholding is 16,000.00 Net pay is (a5,600.00) Input 4527.5 Output Enter the number of hours you worl Gross pay is x1,237.50 Withholding is 18,562.50 Net pay is (x17,325.00)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
