Write a simulation program (in Visual Logic) that instructs Robi to walk towards the walls, to point A first and secondly to point B, and then return to its original sitting position, with an accuracy of +/ – 7 cm. The user of your program should be able to specify the number of trips.

Robotics Robi – the robot – responds to the following commands: • Rotate: 00 – 3600 degree turns, left or right (e.g., rotateLeft(20)) • Stand up: (e.g., standUp) • Sit down: (e.g., sitDown) • Walk (only forward): in 0.5 or 0.75 steps, in meters (e.g., walkStep(0.5)) Initial State: Robi is sitting on a chair.

 

Write a simulation program (in Visual Logic) that instructs Robi to walk towards the walls, to point A first and secondly to point B, and then return to its original sitting position, with an accuracy of +/ – 7 cm. The user of your program should be able to specify the number of trips. Between trips, Robi should rest for a few seconds. Your program should reveal the various actions performed by Robi. The program must: • Indicate the direction of the robot rotation (e.g., left, right), and the corresponding number of degrees. • Indicate the number of steps, identified by the distance covered by each step. • Instruct the robot to walk a minimum total distance for each trip.

Type of paper Academic level Subject area
Number of pages Paper urgency Cost per page:
 Total: