Question: this code must be C programming 1. (20 pts.) There are 20 robots that are placed in a 100x100 rectangular area. At each jump a
this code must be C programming
1. (20 pts.) There are 20 robots that are placed in a 100x100 rectangular area. At each jump a robot can go one step either horizontally or vertically. There is a meeting point in the area that all robots are supposed to go as fast as possible. Write a function that takes the coordinates of the robots as 20x2 integer array and the coordinate of the meeting point as an integer array of length 2. (The 1st element of a coordinate represents row the 2nd element represents column). The function must return the total required number jumps for all robots to meet at the meeting point
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
