Turtle and Rabbit Race

Turtle and Rabbit Race
Loading the math board and drawing, please wait…
2014-08-09 16:00
This example demonstrates a race between a turtle and a rabbit, involving the concept of average speed. Using commands from the construction summary, it shows the use of text fields, conditional statements, segments, vectors, and translations in GeoGebra. Suitable for middle school and above students to learn about speed and time relationships.

GeoGebra Commands & Parameters

  1. Textfield(length) → inputBox1
  2. Textfield(Rover) → inputBox2
  3. Textfield(Rback) → inputBox3
  4. Textfield(turtlespeed) → inputBox4
  5. If(TIME < length / Rover, (TIME * Rover), length - ((TIME - length / Rover) * Rback)) → Rx
  6. If(TIME < length / turtlespeed, (TIME * turtlespeed), length - ((TIME - length / turtlespeed) * turtlespeed)) → Tx
  7. Segment(B, A) → c
  8. Vector(E, rabbit) → u
  9. Translate(pic1, u) → pic1'
  10. Vector(G, rabbit) → v
  11. Translate(pic3, v) → pic3'
  12. Vector(L, turtle) → w
  13. Translate(pic2, w) → pic2'
  14. Vector(M, turtle) → b
  15. Translate(pic4, b) → pic4'

AI Drawing Prompt Reference

Draw a race track with a length determined by user input. On the track, a turtle and a rabbit are racing, with the rabbit's speed set by the user and the turtle's speed fixed. Calculate and draw the positions of the rabbit and the turtle based on the user's input time. The rabbit moves at a faster speed initially and then slows down; the turtle moves at a constant speed. Use arrows to indicate the direction of movement for the rabbit and the turtle, and show their positions on the track.
The prompt above was compiled from the original drawing commands and is for reference only.