If there are any tennis balls near where Karel is standing, you must develop a programme to make Karel take them all. The while loop must be utilized.
Karel, a programming language designed for beginners, was created by Richard E. Pattis for his book Karel The Robot: A Gentle Introduction to the Art of Programming. Pattis utilized it in his lectures at Stanford University in California.
Javascript employs control structures to regulate the program's flow and the execution of commands.
To learn more about control structures visit:
brainly.com/question/29750264
#SPJ4
The given question is incomplete. The complete question is:
You need to write a program that has Karel take all the tennis balls where Karel is standing if there are any there.
Karel should end up with no tennis balls on that spot.
Which control structure do you need to use?
A. For Loop
B. While Loop
C. If Statement
D. If/Else Statement
E. None of these