Assume you are standing atop the engineering research


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 = ½ (gt2)

The variables in the formula are as follows: d is the distance in meters, g is 9.8, and t is the amount of time, in seconds, that the object has been falling.

Assume you are standing atop the Engineering Research Center, holding a ketchup-filled water balloon. The dean is walking by in a bright, clean white hat, soon to arrive right underneath your perch. And temptation strikes. And is irresistible.

Assume the Dean is walking X meters / second, and you are now standing Y meters above the Dean's path. You try to drop the balloon when the Dean is Z meters away from the spot below you, and you must guarantee the strike. Write a program to determine Z using inputs X and Y given by cin.
You have to use a function to calculate the number of seconds for the water balloon to hit the Dean, and another function to calculate the Z value for you to drop the water balloon. So, including the main function, your program must contain at least three functions. Finally, you use cout to display the Z value. Do NOT use X, Y, Z as variable names in your program, as these are not meaningful identifier.

Request for Solution File

Ask an Expert for Answer!!
Electrical Engineering: Assume you are standing atop the engineering research
Reference No:- TGS0600166

Expected delivery within 24 Hours