Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program to calculate the depth of a well. To measure the depth of the well, you take three readings of the time it

image text in transcribed
Write a program to calculate the depth of a well. To measure the depth of the well, you take three readings of the time it takes in seconds for a pebble to hit the water. The program should read three floats from stdin. Calculate the depth d given by d=1/2(g*t*) where g=9.81 m/(s^2) for Dublin and t is the average of the three readings. The program should print the depth of the well in metres. For example: Test Input Result Standard example 10 9.8 10.1 The depth of the well = 487.2 m

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Informix Database Administrators Survival Guide

Authors: Joe Lumbley

1st Edition

0131243144, 978-0131243149

More Books

Students also viewed these Databases questions