A Jeroo
named pat
is at the jeroo olympics to cheer on two friends competing in the high jump. These jeroos can jump super high....
X925: Jeroo high jump
A Jeroo
named pat
is at the jeroo olympics to cheer on
two friends competing in the high jump. These jeroos can
jump super high. Implement the method react()
below so
that it takes pat
and the heights (in meters) of the two jumps
as parameters. If either height is at least 4 meters,
pat
should plant a flower in honor of the jump, unless either
height is lower than 2 meters, in which case pat
should instead
turn left (toward the exit). In the case where pat turns to leave, he should not plant any flowers. Otherwise, pat
should do nothing while
waiting for the results of other competitors.
Your Answer:
Feedback
Your feedback will appear here when you check your answer.