I need writing a program to calculate the volume flow rate in cubic feet per second of water flowing through a pipe of diameter d in inches and a velocity of v feet per second. The formula for the flow rate is given by
Q = area * velocity
Where area= πd² /4 in square feet.
This program was written in Dev C++. Please check the comments to understand the meaning of each variable.
using namespace std;
int main(int argc, char *argv)
float v; ...