Question: Open the file test 2 . cpp and provide the implementation for a simple function named BallVelocity ( ) that meets the following criteria: 1

Open the file test2.cpp and provide the implementation for a simple function named
BallVelocity() that meets the following criteria:
1. Accepts three float arguments (0), and , where (0) is the initial velocity, is
the time in seconds, and is the acceleration of gravity. Note: You should name
the velocity variable something like v0, since you cannot include parenthesis in a
variable name.
2. Calculates the velocity () at time .
3. Return the velocity as a float to the calling routine.
4. The velocity calculation should be based on the following equation:
()=(0)
Problem #3
Open the file test3.cpp and provide the implementation for a simple function named
BallHeight() that meets the following criteria:
1. Accepts three float arguments (0), and , where (0) is the initial velocity, is
the time in seconds, and is the acceleration of gravity.
2. Calculates the height () at time .
3. Return the height as a float to the calling routine.
4. The height calculation should be based on the following equation:
()=(0)2/2
Problem #4
Open the file test4.cpp and provide the implementation for a simple function named
RootSum() that meets the following criteria:
1. Accepts three float arguments , and .

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 Programming Questions!