subject

Karel is looking for the hole where he buried his bones. If the hole is in his yard, it should be somewhere to the east. But if he gets to the house before finding the hole, that means it must be in another yard. Make Karel go to the hole and stop, or stop at the wall if there is no hole. He always starts out in the southwest corner facing east. He should end either just above the hole or at the wall facing east. Since you need to check for two possible conditions that will cause Karel to stop, you will need some code to make your while loop stop in the case where either condition is true. One strategy, is to make a loop that continues as long as some condition is true that can be made false at any time (such as facing a direction or the presence of a ball). If either of the desired conditions for ending the loop are met, do something to make the outer condition false:

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 16:20
Octothorpe is another name for what common computer keyboard symbol?
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
Which of the following is not an enhancement to the standard wiki to make it more attractive for corporations? encryptionwork spacespermission toolspredictive text
Answers: 2
question
Computers and Technology, 24.06.2019 10:10
Which view in a presentation program displays a split window showing the slide in the upper half and a blank space in the lower half?
Answers: 1
question
Computers and Technology, 24.06.2019 22:00
True or false technology is often discovered by accident
Answers: 2
You know the right answer?
Karel is looking for the hole where he buried his bones. If the hole is in his yard, it should be so...
Questions
question
Mathematics, 10.03.2020 09:07
question
Mathematics, 10.03.2020 09:07
question
Mathematics, 10.03.2020 09:07
Questions on the website: 13722367