Find expert answers and community-driven knowledge on IDNLearn.com. Our experts are ready to provide prompt and detailed answers to any questions you may have.

Please help!!!
I'm confused as to what I'm doing wrong! When the dog wrap around the third corner, it doesn't turn left, instead right. Could someone please help me out?


Please Help Im Confused As To What Im Doing Wrong When The Dog Wrap Around The Third Corner It Doesnt Turn Left Instead Right Could Someone Please Help Me Out class=

Sagot :

The most probable reason why your code for the dog turning right instead of is because your conditional statements are not satisfied.

What is Debugging?

This refers to the identification and removal of errors in a given code or hardware component.

Hence, we can see that you should note that you are using teh ifElse conditional statement to execute your code and you stated that the dog would turn right if:

  1. The left side is blocked
  2. If there are balls present.

Therefore, there are balls present and also the left side is blocked which causes your dog to turn right because it is executing the else statement.

Read more about debugging here:

https://brainly.com/question/16813327

#SPJ1