Question: this is a debugging exercise, why am I not getting the same output with this code Output Enter the number of hours you worked t



Output Enter the number of hours you worked t Gross pay is $50.00 Withholding is $750.00 Net pay is $37,500.00 Output Enter the number of hours you worked t Gross pay is $72.50 Withholding is $1,087.50 Net pay is $78,843.75 The program DebugTwo3.cs has syntax and/or logical errors. Determine the problem(s) and fix the program. Grading When you have completed your program, click the Submit button to record your score. 16 This program conputes net weekly pay II based on hours worked, rate per hour, 3 I/ and 15% witholding using system; 5 using static System. Console; using System. Globalization; class. DebugTwos 8\{ static void Main() if 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(): Write("Enter your hourly rate ss "); rateAsstring = ReadLine(); hours = Convert. Tobouble(houraAsstring); rate = Convert. ToDouble(ratoAestring); gross = hours , rate; withholding = gross = WITHHOCDING_RATE; not = gross " withholdingir Writeline("You worked {0} hours at. {1} per hour", hours, rato. Tostring("C\%, CultureInfo. GotculturoInfo ( "en-us")))): Writeline("Gross pay is \{O\}", gross. Tostring("c", CultureInfo. GentCultureInfo("en-us"))): Writokind ("Withholding in {0}, withholding, Tostring ( "c", cultureinfo, Getcultureinfo("en-us")))): Writelifie("Net poy io {0} ", net, Tostring("c", CultureInfo, GetculturoInfo("en-us")))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
