iconWhat if...

Use Jeroo to answer the following questions:
Run a program to make each of these things happen one at a time
Give the exact message if there is an error, or write no error if nothing goes wrong

  1. What if a Jeroo tries to pick a flower and there is no flower?
  2. Can a Jeroo hop backwards? thisjeroo.hop(-1)?
  3. What if you create a new Jeroo in a space that has water or a net in it?
  4. What if you create a new Jeroo in a space that has a flower in it?
  5. What if a Jeroo hops onto a space where another Jeroo is standing?
  6. What if you misspell the word main in method main()?
  7. What if you leave off the last ending brace } in your program?