Answered step by step
Verified Expert Solution
Question
1 Approved Answer
MATLAB use the CASE structure to solve the problem. use MENU command for the selection of the formula to calculate. correct use of the commands
MATLAB
MATLAB A circular pipe of diameter D in meters, have an are of pi*radius^2 on m^2, and with a Q flow in m^3/s of water. Ask yhe user the size of the diameter D of a circular pipe. Then ask what it wants to calculate: 1- average speed 2- flow in accordance of what the user want, ask for the missing parameter. for example, if the user wants to calculate average speed, it needs to ask how much is the flow. If the user wants to calculate the flow, you need to clear the formula and then ask whats the average speed. Ecuaciones a usar / Equations to apply: Having in mind that the tube is circular, then the cross-sectional area is: A = TR2 where R is half the diameter D Poiseuille flow in circular channel equations says that average velocity at steady state is: Vavg use the CASE structure to solve the problem.
use MENU command for the selection of the formula to calculate.
correct use of the commands input, disp, fprintf
Step 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