Answered step by step
Verified Expert Solution
Link Copied!

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 3 tasks, only 1 is wrong, here's what it says:
Task 2: The DebugFive2 logic errors have been fixed.
Test: The `DebugFive2` 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 `DebugFive2` class should contain the OR logic operator.
Error : class java.lang.AssertionError
----------
Test: The `DebugFive2` 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 `DebugFive2` class contains an arithmetic logic error. expected:2> but was:1>
Error : class java.lang.AssertionError
----------
Status: FAILED!
Check: 1
Test:
Reason: Logic errors are more difficult to find as the code will still work but may produce unexpected results. The `DebugFive2` class should contain the OR logic operator.Cengage.message=Logic errors are more difficult to find as the code will still work but may produce unexpected results. The `DebugFive2` class contains an arithmetic logic error. expected:2> but was:1>
Error : str - AssertionError
Also, here's the intructions:
The files provided in the code editor to the right contain syntax and/or 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 10
Enter another number 3
Neither of these numbers is
evenly divisible into the other
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions