The answer to question #2 is Math.round()
If you haven't already done so, bookmark the Java Platform API docs, because you'll refer to them regularly.
I'm too lazy to figure out #3, but as Ameesh said, it's basically algebra.
If you don't already have one, pick up a good introductory Java programming book. Bruce Eckel's Thinking in Java is pretty popular. If you searched the software forum, you could find some other recommendations.
If you haven't already done so, bookmark the Java Platform API docs, because you'll refer to them regularly.
I'm too lazy to figure out #3, but as Ameesh said, it's basically algebra.
If you don't already have one, pick up a good introductory Java programming book. Bruce Eckel's Thinking in Java is pretty popular. If you searched the software forum, you could find some other recommendations.
