Question: I need help debugging this code. please explain what is wrong with it step by step // This pseudocode segment is intended to display //

 I need help debugging this code. please explain what is wrong

I need help debugging this code. please explain what is wrong with it step by step

// This pseudocode segment is intended to display // employee net pay values. All employees have a standard // $45 deduction from their checks. // If an employee does not earn enough to cover the deduction, // an error message is displayed. start Declarations string name num hours num rate num DEDUCTION = 45 string EOFNAME "Z2Z" num net output "Enter first name or ", ROFNAME, "to quit" input name while name equal to EOFNAME output "Enter hours worked for ", name input hours output "Enter hourly rate for name gross hours * rate net -grssDEDUCTION while net > 0 then output "Net pay for ", name, is ", net else output "Employee did not make enough to cover deductions, Net is output "Enter next name or ", BOFNAME, " to quit" input name output "End of Job" endwhi le stop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!