Explore BrainMass

C Code of Calculating Volume Flow Rate

This content was STOLEN from BrainMass.com - View the original, and get the solution, here!

Compute the volume of water in cubic feet, flowing through a pipe of diameter d in feet, with a velocity of v feet per second. The formula to compute the volume flow rate per second is given by:
R = d /2
Area= π . r^2
Volume = area .v

© BrainMass Inc. brainmass.com September 20, 2018, 8:47 am ad1c9bdddf - https://brainmass.com/computer-science/algorithms/c-code-of-calculating-volume-flow-rate-538969

Solution Preview

Hi, this is my C program.

int main()
float d; //define diameter of pipe
float v; //define velocity of ...

Solution Summary

The solution gives a complete c code of calculating volume rate per second using given formula.