CS1302: 2026-01-15
A TOP-DOWN DESIGN OF A GRAPHICAL ORBIT SIMUATION
Usual Preparation
- Open Qunicy (with code if you have some)
- Open rustpad.io/#CS1302
- 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
- Review your code.
- Range of eccentricity.
- Meaning and units of the mean anomaly in terms of the orbit's period.
- Meaning of the solution x (the eccentric anomaly).
- Our goal is to have so-called true coordinates, which have their center at the sun rather than the center of the ellipse.
- Embedding your function in a small test project.
Group Project: A Graphical Orbit Simulation
- You'll work together with me as your project leader.
- During class, I'll show you some things that you can get started on now.
- What we've been doing so far is bottom-up design.
- The concept of top-down design
- Crude animation loops
- Using double-buffering
- In top-down design, you may propose a function and call it before you've written anything but a stub.
Tasks
- Continue to work on the project.
- You may continue as a group or individually--your choice!
- 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.
- Spend some time exploring for-loops as used to draw multi-pointed stars.