CS1302: 2026-01-15
A TOP-DOWN DESIGN OF A GRAPHICAL ORBIT SIMUATION

Usual Preparation

  1. Open Qunicy (with code if you have some)
  2. Open rustpad.io/#CS1302
  3. And I'll attempt to get the Google Meet started before you call me!

Books on the Way:

    Two more copies of Freidman and Koffmann, though they could take a week or so.

    One copy of the reference C++ Primer (5th edition) by Lippman et al. (The copy behind me is the 4th edition.)

Show Me Some Work You've Done: Kepler's equation

  1. Review your code.
  2. Range of eccentricity.
  3. Meaning and units of the mean anomaly in terms of the orbit's period.
  4. Meaning of the solution x (the eccentric anomaly).
  5. Our goal is to have so-called true coordinates, which have their center at the sun rather than the center of the ellipse.
  6. Embedding your function in a small test project.

Group Project: A Graphical Orbit Simulation

  1. You'll work together with me as your project leader.
  2. During class, I'll show you some things that you can get started on now.
  3. What we've been doing so far is bottom-up design.
  4. The concept of top-down design
  5. Crude animation loops
  6. Using double-buffering
  7. In top-down design, you may propose a function and call it before you've written anything but a stub.

Tasks

  1. Continue to work on the project.
  2. You may continue as a group or individually--your choice!
  3. Call your group leader if you need guidance (but not on Saturday afternoon2:30 - 5pm MST, when I'll picking up Hannah from the airport). If the book arrives tomorrow or Monday, please get started reading Chapter 1.
  4. Spend some time exploring for-loops as used to draw multi-pointed stars.