Goals |
Part 0: preparation (0 points) |
Part 1: class Body members (2 points) |
Part 2: move and show (2 points) |
To get started, ignore gravity, and simply make the planets move in a straight line, as in the warmup.
Part 3: resetForce and computeForce (3 points) |
Part 4: move (2 points) |
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 |