Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Need help correcting the errors in C#. the errors are inside the pics image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions