Johannes Kepler's third law of planetary motion says that the square of a planet's period of revolution around the sun is proportional to the cube of its mean distance from the sun. The earth's period of revolution is, of course, one year, and its mean distance from the sun is a hundred and fifty million kilometers.
Here are the periods of revolution of the other planets of our solar system:
Write a Scheme program that calculates and prints out the mean distance of each of these planets from the sun, in kilometers.
You may either turn it a hard copy of your program (that is, one that is printed on paper) or send it to me by electronic mail. If your program is stored in a file named, say, Kepler.ss, the command
elm -s "CSC 151, Exercise #1" stone@math.grin.edu < Kepler.ss
sends the program to me. See the handout on mailing files for details.
This document is available on the World Wide Web as
http://www.math.grin.edu/~stone/courses/scheme/exercise-1.html
created August 25, 1997
last revised August 25, 1997