Answered step by step
Verified Expert Solution
Question
1 Approved Answer
can someone write a basic c program for this problem? ENGR 200 SPRING, 2019 Al: Computing Mass Flow Rate, Volume Flow Rate, and Average Velocity
can someone write a basic c program for this problem?
ENGR 200 SPRING, 2019 Al: Computing Mass Flow Rate, Volume Flow Rate, and Average Velocity in Pipe Branches (basic program development) DUE: Jan. 22, 2019 at 11:59 pm, CST, (Mon/Wed section) Jan. 22, 2019 at 11:59 pm, CST, (Tues & Distance sections) POINTS: 35 INTRODUCTION: A water piping system has a T-fitting that splits the flow into two flows. See the illustration below. Water enters the main pipe at a volume flow rate of Vgpm-350 gal/min. The flow will split into branch one with diameter D, and into branch two with diameter D2. The average velocity of the water in branch two is Vz 3 m/'s Discharge 1 Branch 1 Diameter Main Diameter Discharge2 Branch 2 Diameter The governing equations are A,-- (Computes cross-sectional area of branch 1, m2) 4 TTD A2 -2 (Computes cross-sectional area of branch 2, m2) 4 * (Converts main pipe gal/min to m3/s) cmps gpm 264.17 60 V2- A2V V1-Vemps -V2 (Computes volume flow in branch 1, m3/s) m1- (Computes mass flow in branch i, kg/s) m2pV Computes mass flow in branch 2, kg/s) (Computes volume flow in branch 2, m%) V. (Computes velocity in branch 1, m/s) ASSIGNMENT: Write a C program that will compute the mass flow rate and the volume flow rate in each pipe branch, and the average velocity in pipe branch 1. The program will prompt the user to enter the main pipe volume flow rate, the diameter of branch 1, the diameter of branch 2, and the average velocity of branch 2. The program must define and pas symbolic constants in the preprocessor direction section. For use 3.14159 and for use 1000. To test the program, use 7 cm for branch 2 diameter and 4 cm for branch 1 diameter The output format is shown below. Use your PC's cursor to determine the horizontal and vertical spacing for the output OUTPUT FORMAT: SPLIT PIPE COMPUTATIONS Enter main volume flow rate in gal/min: x Enter diameter of branch 1 in cm Enter diameter of branch 2 in cm Enter velocity of branch 2 in m/s: RESULTS Main volume flow rate Main volume flow rate Branch 1 diameter Branch 2 diameter Branch 1 area Branch 2 area Branch 1 volume flow ratexxxxx cubic m/s Branch 2 volume flow rate -xxxXx cubic m/s Branch 1 mass flow rate = XX.. kg/s Branch 2 mass flow rate = XX.XX kg/s Branch 1 average velocity - .xx m/s Branch 2 ave rage velocity-X, XX, m/s = XXXaK gal/min xxxxx cubic m/s X. XXXXX sg meters XvXXXXX.5 metersStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started