### Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

# python programming 57

Solve the following programming problem: A robot moves in a plane starting from the point (0,0). The robot can move UP, DOWN, LEFT and RIGHT with a given number of steps, for example: UP 5 DOWN 3 LEFT 3 RIGHT 2 The numbers after the directions are steps. Your task: Write a Python 3 program to compute the distance from the original point (0,0) after a sequence of movements. Print the distance as an integer (if distance is not an integer round it to the nearest integer). You print the distance when in any of the above commands the number of steps is negative. Example: If the following movements are given as input to the program: UP 5 DOWN 3 LEFT 3 RIGHT 2 UP -1 Then, the output of the program should be: Distance from (0,0) to (-1, 2) = 2 ( the square root of 5 is 2.2361; rounding it down to 2 to output it) 1. Your program must have comments indicating your name, date, purpose of the program, etc. like the programs we have written in class. 2.  Submit it your solution (finalTest_yourLastName_yourFirstName.py) through Can