Move Robot

You are given a Robot class that contains the following methods

  1. void moveOneStepUp() -> This method moves the robot one step up
  2. void moveOneStepLeft() -> This method moves the robot one step to the left
  3. void moveOneStepRight() -> This method moves the robot one step to the right
  4. void moveOneStepDown() -> This method moves the robot one step down.

You are given one robot that initially starts at X = 0 and Y = 0, we want to move it to the target at X = 4 and Y = 3.

Complete the following program to move the robot.

Note: You only need to complete Main class in Main.java file. Robot class in Robot.java file is provided to you.

Screenshot-2024-07-22-at-2-23-36-AM

Test your solution here
when it passes, copy it and submit it here so your coach can grade it.