Calculate number of second for water balloon to hit the dean

Assignment Help Electrical Engineering
Reference no: EM13261450

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.

Reference no: EM13261450

Questions Cloud

Find the total electric potential at origin : two point charges are on the y axis. A 3.50 uc charge is located at y=1.1cm, and a -2.16 uc charge at y=-1.4cm. find the total electric potential at origin in volts
What is the equivalent energy flow rate in megawatts : If gasoline has a 120,000 Btu/gal energy content, and an average tank fill up requires 15 gallons over a 5 minute period, what is the equivalent energy flow rate (or power) in Megawatts in chemical power flowing through the nozzle per fill up
Explain constant temperature not change the concentrations : In which of the following reactions would increasing pressure at constant temperature not change the concentrations of reactants and products, based on Le Ch telier's principle
Find the final speed of the space craft : A 20t space craft leaving the dock of a space stationmakes a 12s engine burn. find the final speed of the space craft with respect to the station
Calculate number of second for water balloon to hit the dean : 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.
What is the net present value : What is the net present value (NPV) of this decision if the cost of capital is 9%?
Find the angular velocities at the end of this time interval : The angular position of a point on the rim of a rotating wheel is given by ? = 7.68t - 5.13t2 + 1.73t3, where ? is in radians and t is in seconds. find the angular velocities at the end of this time interval
Explain the standard enthalpies of combustion for ethanol : The standard enthalpies of combustion for ethanol and dimethyl ether are -1367kJ mol-1 and -1460kJ mol-1, respectively, at 298K. what is delta U at 298K for the purposes below:
How much compound interest is earned on a deposit : How much compound interest is earned on a deposit of $3400 at 0.75% compounded daily for 30 days?

Reviews

Write a Review

Electrical Engineering Questions & Answers

  What will be the output voltage from the bridge for a change

What will be the output voltage from the bridge for a change in temperature of 20o C The supply voltage to the bridge is 6.0 V and the temperature coefficient of resistance of the platinum is 0.0039 K-1.

  How to close the temperature switch turns on

In a motor control system, one master stop pushbutton (Stop) is available for stopping the operation at any time. If the temperature switch (TSW) is closed, pressing the red pushbutton (RedPB) will turn on both motors M1 and M2.

  What is the real power-reactive power and aparent power

A manufacturing plant has a 600V, 60Hz supply and the following loads: Lights: 24kW Electric furnace: 4.8 + j6.4%u03A9 with a current of 150A Motor loads, 160kW at 0.8 Power Factor, lagging.

  Calculate all phase and line currents and line voltages

Assume the system shown in the Fig. is balanced, Rw = 0, Van = 208 angle 0 degree V, and positive phase sequence applies. calculate all phase and line currents, and all phase and line voltages, if Zp is equal to a) 1K ohms b) 100 + j48 ohm

  Design a three-bit counterlike circuit controlled by input w

Brown and Vranesic. Problem 6.28 - Repeat Problem 6.26 using T flip-flops. Design a three-bit counterlike circuit controlled by the input w. If w = 1. then the counter adds 2 to its contents, wrapping around if the count reaches 8 or 9.

  Explain can protons every flow through current

Can protons every flow through current? Even though in the overwhelming majority of cases the current flowing through a material is dominated by the movement of electrons"

  Determine what is the capacitance of the parallel capacitor

A capacitor is formed by two metal parallel plates with the dimensions 210 mm x 210 mm separated by the gap of 1.2 um (u=micro) filled with dielectric material with relative dielectric permittivity 3.8.

  Design phase-lag compensator for velocity error constant

Design a phase-lag compensator G_c(s) such that the static velocity error constant K_v is 50 sec^-1 without appreciably changing the location of the original closed-loop poles, which are at: \(s = -2 \pm j\sqrt{6}\)

  Find what is the resolution in degrees per state

An absolute optical rotary encoder has five tracks. How many bits is the output, and what is the resolution in degrees per state (that is, degrees per LSB)

  Define infinity expected number of packets in the queue

If you have an M/M/Infinity system with arrival rate lambda and service rate mu(µ), how would you show that the expected number of packets in the queue is equal

  Find potential difference between inner and outer surface

A part hollow non conducting sphere has a uniform volume charge density of 200 nC/m2. Find the potential difference between the inner surface at r=2cm and outer surface at r=5cm

  Determine the armature current and speed

A 300 V, 60 A, 1200 rpm series dc motor has an armature and series field resistance of .2 ohms each. When a .10 ohm resistance is connected in parallel to the winding, the motor's torque is doubled.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd