Consider the following example of a LightBot program written out in text. Again, in this case we have named our robot "andy". How many times would andy jump?

f1:
  andy.move();
  andy.turnRight();
  andy.move();

f2:
  andy.jump();
  andy.jump();
  andy.jump();

main:
  andy.f1();
  andy.f1();
  andy.jump();
One
  • Two
  • Three
  • Six

>The f1() method is run twice, but f2() never gets called from the main and thus never runs in this code!