Question: Write in code C++ code that performs the following calculations. The tank has to get the coordinates of the soldier and calculate the distance. When
Write in code C++ code that performs the following calculations. The tank has to get the coordinates of the soldier and calculate the distance. When the distance is calculated, the tank needs to perform the appropriate rotation (left / right) depending on the soldier's coordinates. Note the canon is 1 meter, the position of the tank is (1,0). Run a scenario where the soldier's cords are (3,3) and (-3,3)

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
