Controls

 9.8 m/s2
 10 s

Regular Coding

In C++, the following code would produce the output listed below


int main() {
  const double GRAVITY_MPS2 = 9.8;
  int seconds = 10;
  std::cout << "Secs  Distance" << endl
    << fixed << showpoint << setprecision(2);
  for (int i = 1; i <= seconds; i++) {
    std::cout << setw(4) << i << "  " << (0.5*GRAVITY_MPS2*i*i) << endl;
  }
  return 0;
}
  
SecondsDistance
14.90
219.60
344.10
478.40
5122.50
6176.40
7240.10
8313.60
9396.90
10490.00