Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started