Question: DESCRIPTION When an object is falling because of gravity, the following formula can be used to determine the distance the object falls in a specific

DESCRIPTION

When an object is falling because of gravity, the following formula can be used to determine the distance the object falls in a specific time period:

d = 0.5gt2 The variables in the formula are as follows: d is the distance in meters and t is the amount of time, in seconds, that the object has been falling. Near the surface of the Earth, the acceleration due to gravity, g, is 9.80665 m/s2 (meters per second squared).

Declare a named constant for acceleration due to gravitiy to use in the calculateDistance function. Write a function, calculateDistance, that accepts an objects falling time (in seconds) as a parameter. The function should return the distance, in meters, that the object has fallen during that time interval.

C++

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!