Question: Can you pls debug this code for me please? Out of the 3 tasks, only 1 is wrong, here's what it says: Task 2 :
Can you pls debug this code for me please? Out of the tasks, only is wrong, here's what it says:
Task : The DebugFive logic errors have been fixed.
Test: The DebugFive class does not contain a logic operator error.
Status: FAILED!
Reason: Logic errors are more difficult to find as the code will still work but may produce unexpected results. The DebugFive class should contain the OR logic operator.
Error : class java.lang.AssertionError
Test: The DebugFive class does not contain an arithmetic logic error.
Status: FAILED!
Reason: Logic errors are more difficult to find as the code will still work but may produce unexpected results. The DebugFive class contains an arithmetic logic error. expected: but was:
Error : class java.lang.AssertionError
Status: FAILED!
Check:
Test:
Reason: Logic errors are more difficult to find as the code will still work but may produce unexpected results. The DebugFive class should contain the OR logic operator.Cengage.messageLogic errors are more difficult to find as the code will still work but may produce unexpected results. The DebugFive class contains an arithmetic logic error. expected: but was:
Error : str AssertionError
Also, here's the intructions:
The files provided in the code editor to the right contain syntax andor logic errors. In each case, determine and fix the problem, remove all syntax and coding errors, and run the program to ensure it works properly.
An example of the program is shown below:
Enter a number
Enter another number
Neither of these numbers is
evenly divisible into the other
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
