X983: For Loops Hopping Many Times

For this code, we are adding a method to a class called Rabbit. Much like Jeroos, a Rabbit has a hop() method which will cause the rabbit to hop once.

The method below should act like a jeroo's hop(n) method and cause the rabbit to hop the number of times specified in the parameters.

Using a for loop and a call to hop(), finish this method so that the rabbit will hop the number of times specified in the parameter.

Your Answer:

Feedback

Your feedback will appear here when you check your answer.