If you drop a brick from a tower, what will happen to the brick?

A good answer might be:

It will fall to the ground under the influence of gravity.

Falling Bricks

Gravity will pull upon the brick, causing it to go faster and faster. The distance of the brick from where it was released after t seconds will be:

distance  =  (1/2) * G * t2
In this fourmula:
  • t is the number of seconds since the brick was released.
  • G is a constant: 9.80665
  • distance is in meters.
For example, after 0.0 seconds, the brick will be 0.0 meters from the release point.

After 1.0 second, the brick will be at (1/2)*9.80665*(1.0)2   =   0.5 * 9.80665 * 1.0 = 4.903325 meters.

After 2.0 seconds, the brick will be at (1/2)*9.80665*(2.0)2   =   0.5 * 9.80665 * 4.0   =   19.6133 meters.

This is getting tedious. It would be nice to have a program to do the calculation for many values of t and print the result as a table.

QUESTION 12:

The program will use some sort of a loop.

  • What will be the loop control variable?
  • What will be inside the body of the loop?

Click Here after you have answered the question