A physics professor wants you to write a program that displays the effect of gravity on a free falling object. He would like a table that shows the height of the object dropped from a building for every time period that it is falling.
The output of this program might look like:
Enter building height in meters: 100
Enter time in seconds between table lines: .5
Time Height
0.00 100.00
0.50 98.77
1.00 95.10
1.50 88.97
2.00 80.39
2.50 69.35
3.00 55.87
3.50 39.93
4.00 21.55
4.50 0.71
SPLAT!!
Later on, the professor decides that he wants the results to be output to a file so that he may easily incorporate them into a report.