Kapil is programming a robot to always know its distance from its charging base by following these steps:
Step 1) save b, which is the current distance from the base
Step 2) Face charging base and turn 0° to the right
Step 3) Move x
Step 4) Compute new distance from the base
Step 5) Go back to Step 1
For example, it might happen that when the robot gets to step 4 in its program
b=70 units
Θ = 60°, and
x=50 units
In the example above, what would the robot's new distance from its base be?
