Question: C++ Problem Description: Pipe Dream Objective: Practice developing and implementing a complete C++ program to solve a problem. Suppose that a fluid is flowing at
C++
Problem Description: Pipe Dream
Objective: Practice developing and implementing a complete C++ program to solve a problem.
Suppose that a fluid is flowing at a rate of F through a pipe of diameter D. Let V represent the velocity of the fluid. Then the variables F, D and V are related by the following formulas:

Write a complete C++ program which will input two values:
- Flow rate F in cubic centimeters/sec
- Velocity in ft / min
And then compute and output the diameter of the pipe in inches.
Requirements:
- Declare and use at least one const variable (pi is an obvious choice, can you think of others?).
- Use meaningful variable names and reasonable data types.
- Use the header format template.
- Include a comment section at the top of you file, with your name, the assignment number and a brief summary (in your own words) of what the program does.
- Prompt for each input value you need and annotate the output to describe what it represents.
- Include comments to describe the major sections of the program
Notes:
- The formulas require all the corresponding units to be the same, so your program will need to convert the input values to the appropriate unit representation.
- Once your program is running, run it twice with the data sets shown:
- Data set 1
Velocity: 12 feet/min
Flow Rate: 400 cubic centimeter / sec
- Data set 2
Velocity: 50 feet/min
Flow Rate: 200 cubic centimeter / sec
D = 1 V = D2 F = 11DV
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
