Question: c++ format. PLEASE FOLLOW the starter code and instruction. first image- instruction second image- starter code third image- visual how the output should be ill

c++ format. PLEASE FOLLOW the starter code and instruction.
first image- instruction
second image- starter code
third image- visual how the output should be
ill like upon completion  c++ format. PLEASE FOLLOW the starter code and instruction. first image-
instruction second image- starter code third image- visual how the output should
be ill like upon completion When an object is falling because of

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 = gt The variables in the formula are as follows: d is the distance in meters, g is 9.8 (this should be a constant variable in your program), and t is the amount of time, in seconds, that the object has been falling. Write a function named falling Distance that accepts an object's falling time (in seconds) as an argument. The function should return the distance, in meters, that the object has fallen during that time interval. Write a program that demonstrates the function by calling it in a loop that passes the values 1 through 10 as arguments, and displays the return value. 1 77 Chapter 6, Programming Challenge 5: Falling Distance 2 // 3 77 Name: 4 // Date: 5 77 6 7 // Provide the needed header files HERE !!!!!! 8 using namespace std; 9 10 // Function prototype 11 double fallingDistance(int); 12 13 int main() 14 { // Set the numeric output formatting. 17 // Set the preciesion to 2 with fixed and showpoint 18 19 // Display the seconds and distance: 20 21 return 0; 15 16 22 } 23 24 //**** 25 // The fallingDistance function returns the 26 // distance that a falling object falls. The time * 27 // parameter is the number of seconds the object 28 // fell. 29 //**** 30 31 1 In 1 second(s), the object has fallen 4.90 meters 2 In 2 second(s), the object has fallen 19.60 meters 3 In 3 second(s), the object has fallen 44.10 meters 4 In 4 second(s), the object has fallen 78.40 meters 5 In 5 second(s), the object has fallen 122.50 meters 6 In 6 second(s), the object has fallen 176.40 meters 7 In 7 second(s), the object has fallen 240.10 meters 8 In 8 second(s), the object has fallen 313.60 meters 9 In 9 second(s), the object has fallen 396.90 meters 10 In 10 second(s), the object has fallen 490.00 meters 11

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!