| Goals |
| Announcement |
| Part 0: preparation |
| Part 1: class Body members |
| Part 2: move and show |
To get started, ignore gravity, and simply make the planets move in a straight line, as in the warmup.
| Part 3: resetForce and computeForce |
| Part 4: move |
| General debugging hints |
| Compiling and executing |
or compile a deluxe version with extra bells and whistles using:javac Body.java Nbody.java
javac Body.java NbodyDeluxe.java
appletviewer Nbody.html appletviewer NbodyDeluxe.html
chmod 644 *.html *.class *.gif *.au *.jpg
| Submission and readme (1 point) |
/u/cs126/bin/submit 9 Body.java readme
| Extra credit (1 point) |
| Enrichment Links |