X832: LightBot Writing Method Calls 2

For the question below, assume we are working with a simplified LightBot that can perform the following actions

  • Turn Left
  • Turn Right
  • Move Forward
  • Jump

Each of these actions is represented by a method call:

  • Turn Left --> turnLeft()
  • Turn Right --> turnRight()
  • Move Forward --> moveForward()
  • Jump --> jump()

For this problem, you'll be working with a LightBot object named andy.

Write code so that andy turns left, then right, then jumps twice.

Your Answer:

Feedback

Your feedback will appear here when you check your answer.