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 19:00
If your accelerator suddenly gets stuck what should you do
Answers: 2
question
Computers and Technology, 23.06.2019 15:30
Brian wants to conduct an online search with a certain phrase. he intends to use the words books that belong to the 1800s in his search. how should he use the word that in his search?
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
How to do this programming flowchart?
Answers: 3
question
Computers and Technology, 24.06.2019 17:30
Click on the tab on the ribbon to open the backstage view. file view insert review
Answers: 1
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
Biology, 27.02.2021 09:30
question
Biology, 27.02.2021 09:30
question
English, 27.02.2021 09:30
question
Mathematics, 27.02.2021 09:30
question
Mathematics, 27.02.2021 09:30
question
Spanish, 27.02.2021 09:30
question
Mathematics, 27.02.2021 09:30
Questions on the website: 13722367