Question

In: Computer Science

Linda was standing on a bridge dropping rocks into the water below. She noted that it...

Linda was standing on a bridge dropping rocks into the water below. She noted that it took 5 seconds for each rock to reach the water. Write a program to find the height of the bridge by using formula: Distance= (GT2 ) /2 Where Distance is the height of the bridge in meters; G is a constant (gravity=9.81 meters/second2 ), and T is the time in seconds Note. Declare gravity as constant

Solutions

Expert Solution

Note:- Since in the question no specify programming language is metioned, so I have the write the code in C++

Code:-

#include <iostream>
#include <math.h>
using namespace std;

int main()
{
float H,T, G=9.8; // declaring the variables
cout<<"Enter the time(T) taken in seconds ";
cin >>T;
H=(G*pow(T,2))/2;
cout<<"Height of the Brigde is "<<H<<" meters";

return 0;
}

ScreenShot:-

Thank You....!!!!
For any query, please comment.
If you are satisfied by the above answer, then please thumbs up or upvote the answer.


Related Solutions

A person standing on a bridge at a height of 115m above river drops a 0.250kg...
A person standing on a bridge at a height of 115m above river drops a 0.250kg rock. A). What is the rock's total mechanical energy at the time of release relative to the surface of the river? B). What are the rock's kinetic, potential, and total mechanical energies after it has fallen 75.0m? C). Just before the rock hits the water, What are its speed and total mechanical energy? D). Answer parts (A)-(C) for reference point (y=0) at the elevation...
Why are water tables dropping around the world? What are some negative impacts of falling water...
Why are water tables dropping around the world? What are some negative impacts of falling water tables?
Linda is a half marathon runner. She read an article in a runner’s magazine promoting a...
Linda is a half marathon runner. She read an article in a runner’s magazine promoting a new sports beverage that contains protein. She has always used a traditional carbohydrate-rich sports beverage, and has had great results. However, she wonders if this new product would work even better and help her run faster. Would this new sports beverage containing protein work well for Linda?          How much protein should Linda be consuming before and during a half marathon?
Indigenous people sometimes cook in watertight baskets by placing hot rocks into water to bring it...
Indigenous people sometimes cook in watertight baskets by placing hot rocks into water to bring it to a boil. What mass of 500°C granite must be placed in 4.00 kg of 15.0°C water to bring its temperature to 100 °C , if 0.0250 kg of water escapes as vapor from the initial sizzle? 1. To solve this problem, we need to know how many different steps of heat absorption take place before thermal equilibrium is reached. Please write a few...
Fresh water from rivers and lakes varies in acidity/alkalinity depending on the rocks and soils it...
Fresh water from rivers and lakes varies in acidity/alkalinity depending on the rocks and soils it runs over. Granite country yields water that is slightly acidic, while water from limestone country is slightly alkaline. Acidity and alkalinity are measured on a pH scale, on which 7 is neutral, values below 7 are acidic and values above 7 are alkaline. pH can change due to pollution or due to waste from biomass such as algae. A certain river, fed by various...
Sedimentary rocks and Running water, what two spheres do they represent and how are they linked?...
Sedimentary rocks and Running water, what two spheres do they represent and how are they linked? Let's get a discussion going. please asap
Linda bought a passenger car on February 15, 2017 that she uses 45 percent of the...
Linda bought a passenger car on February 15, 2017 that she uses 45 percent of the time in her business and 55 percent of the time for personal use. The car cost $48000 and no expensing or bonus depreciation is allowable for the car. Compute Linda's maximum allowable depreciation deduction for the car in 2017.
Part 1) Linda just sold all the shares of company A stock that she owned for...
Part 1) Linda just sold all the shares of company A stock that she owned for $156/share. She purchased the stock one year ago for $150/share. Over the year, she received $1/share in dividend. Calculate the return on her investment. Part 2) The interest rate on one-year Treasury-bond is 0.4%, the rate on two-year Treasury bond is 0.8%, the rate on three-year T-bond is 1.1%. a. Compute the expected interest rate in the second year (year 2) b. Compute the...
Water standing in the open at 34.5°C evaporates because of the escape of some of the...
Water standing in the open at 34.5°C evaporates because of the escape of some of the surface molecules. The heat of vaporization (553 cal/g) is approximately equal to εn, where ε is the average energy of the escaping molecules and n is the number of molecules per gram. (a) Find ε. (b) What is the ratio of ε to the average kinetic energy of H2O molecules, assuming the latter is related to temperature in the same way as it is...
Linda Clark received $210,000 from her mother’s estate. She placed the funds into the hands of...
Linda Clark received $210,000 from her mother’s estate. She placed the funds into the hands of a broker, who purchased the following securities on Linda’s behalf: a. Common stock was purchased at a cost of $91,000. The stock paid no dividends, but it was sold for $160,000 at the end of three years. b. Preferred stock was purchased at its par value of $46,000. The stock paid a 4% dividend (based on par value) each year for three years. At...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT