Question
Write a MATLAB script incorporating IF-ELSE statements or IF-ELSEIF-ELSE statements that asks the user to enter the water level as measured by the fluid level
Write a MATLAB script incorporating IF-ELSE statements or IF-ELSEIF-ELSE statements that asks the user to enter the water level as measured by the fluid level gauge (in feet), the measured pressure in psi (pounds per square inch), and the temperature measured in degrees Fahrenheit. MATLAB must then use the entered inputs to determine whether any safety limits are violated. If a safety limit is violated, then MATLAB must display a specific message warning the user that a shutdown is necessary.
Shutdown is recommended if any of the following combinations of conditions is satisfied: Fluid level exceeds 50 feet regardless of pressure and temperature (display message: Fluid level is too high) Pressure exceeds 250 psi regardless of fluid level and temperature (display message: Pressure exceeding safe limits) Temperature exceeds 600 degrees Fahrenheit regardless of fluid level and pressure (display message: Temperature exceeding safe limits) Fluid level exceeds 10 feet, pressure exceeds 100 psi and temperature exceeds 500 degrees Fahrenheit (display message: Tri-combo limit exceeded) Fluid level exceeds 20 feet and pressure exceeds 150 psi (display message: Overflow risk Pressure exceeds 200 psi and temperature exceeds 450 degrees Fahrenheit (display message: Explosion risk) Fluid level exceeds 30 feet and pressure exceeds 350 degrees Fahrenheit (display message: Burn risk) For all other cases, the refinery is operating within safe limits and the computer should display the message Operating within safe limits.
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