AdaCore University

Stars 02 - Statements

Download Lab Files


  • Implement a loop allowing Earth to turn around sun. Within the loop, you may feel the need of updating the position every given amount of time. You may use the delay statement to make the program wait. Try for example "delay 0.01" to wait 10 miliseconds per cycle.

  • Add a moon rotating around Earth.