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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!