Question
Write a MATLAB program that will determine the condition of a nuclear reactor. The user will input the temperature and pressure values read from gages.
Write a MATLAB program that will determine the condition of a nuclear reactor. The user will input the temperature and pressure values read from gages. The program will determine the state of the nuclear reactor and then output using fprintf the following statement: The Nuclear Reactor is categorized as: followed by the correct Category.
Other Requirements for the Program: If the readings put the condition in two different categories, the higher category should be selected. For example, a reactor with a temperature/pressure reading of 366/157, respectively, would be categorized as very severe for the temperature reading and severe for the pressure reading. The program should output very severe.
The table below will be of use:
Category | Temperature | Pressure |
Normal | Below 344 | Below 149 |
Moderate | 345-354 | 150-154 |
Severe | 355-364 | 155-159 |
Very Severe | 365-374 | 160-164 |
Melt Down | Above 375 | Above 165 |
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