Question: This is a simple project mainly for practice running and submitting a C program. Write a program which requests and reads three double values. The

This is a simple project mainly for practice running and submitting a C program.
Write a program which requests and reads three double values. The first are the the diameter and height of a cylindrical bucket, given in centimeters. The third is a (constant) fill rate for the bucket, given as milliliters per second. The program then reports the amount of time needed to fill the bucket with water at the stated rate.
The calculation is straightforward. The volume of the bucket is
v=h\times \pi r2
where r is the radius of the base (half the diameter). The volume, v, is in cubic centimeters. Since a cubic centimeter is a milliliter, you can divide v by the flow rate to get the time for that volume to flow into the bucket.

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