Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For the safety of the workers and the protection of the equipment in a water treatment facility, you want to develop a computer program that

For the safety of the workers and the protection of the equipment in a water treatment facility, you want to develop a computer program that can determine whether operations are within safe limits or whether a potential shutdown is necessary to prevent catastrophic failures. The facility has a water level gauge, a pressure gauge and a thermometer installed to monitor the key operating conditions.

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 (see below) warning the user that a shutdown is necessary. Shutdown is recommended if any of the following combinations of conditions is satisfied:

Fluid level exceeds 30 feet regardless of pressure and temperature (display message: Fluid level is too high)

Pressure exceeds 175 psi regardless of fluid level and temperature (display message: Pressure exceeding safe limits)

Temperature exceeds 200 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 130 degrees Fahrenheit (display message: Tri-combo limit exceeded) Fluid level exceeds 20 feet and pressure exceeds 12 0 psi (display message: Overflow risk)

Pressure exceeds 125 psi and temperature exceeds 150 degrees Fahrenheit (display message: Pipe rupture risk)

For all other cases, the facility 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What is the relationship between humans and nature?

Answered: 1 week ago