Robot problem
A robot moves in a two-dimensional plane starting from the original position (0,0) by default. The program must confirm the same from the user. In case user wants to specify a different start point the program must update that. The robot can move toward UP, DOWN, LEFT and RIGHT. There are numbers after the direction, which are steps which the robot travels in that direction. The user gives information of the movement one by one in no specific order. In case the user gives a wrong input the program must prompt it to give the correct input. In case user inputs STOP, the program must then return initial, final coordinates of the robot and the distance from the traveled. A sample trace of robot movement is shown as the following: UP 5 DOWN 3 LEFT 3 RIGHT 2 UP 1 RIGHT 5 The output of this example will be 5 units with the initial position as (0,0) and final position (4,3).