Question: Do question 2 and 3 only no need to finish question 4 Q2. Given the following dictionary, Line={x1:114, Y1:10,x2:123, Y2:119, len:109, mag:1511,theta:176, rho:-114) a) Extract


Q2. Given the following dictionary, Line={"x1":114, "Y1":10,"x2":123, "Y2":119, "len":109, "mag":1511,"theta":176, "rho":-114) a) Extract coordinates of x1,y1 b) Extract coordiantes of x2,42 c) Calculate the distance from P(x1,y1) to P(x2,y2) DEV(x2 x)2 + (y2 - y)2 Q3. Write a python program to calculate the following a. totalCost = 3000 + 12000 = (3x 2) b. y1 = 53 + 4sin ) C. y2 = 10cos (135) + 2sin (459) Q4. Write a python program to answer the following questions a. Please determine the line type from Line1 to Line8 (Straight / Slash) b. Consider left hand side of the lane, which lines are the inner boundaries? **Assume the robot walks in the middle of the track, robot_reference = (129.64,99.5) (( 13
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
