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 |
temp = input('Enter temperature: ');
pressure = input('Enter pressure: ');
if temp>=375 || pressure>=165
reactor='Melt Down';
elseif temp>=365 || pressure>=160
reactor = 'Very Severe';
elseif temp>=355 || pressure>=155
reactor = 'Severe';
elseif temp>=345 || pressure>=150
reactor = 'Moderate';
else
reactor = 'Normal';
end
fprintf('The Nuclear Reactor is categorized as: %s\n',reactor)

Write a MATLAB program that will determine the condition of a nuclear reactor. The user will...
For this task, you will be writing a Python script that will determine a person’s blood pressure category. The program should prompt the user for the systolic and diastolic blood pressure readings. Based on the readings and using the table below, the program will determine and output the category. Category Systolic Diastolic Hypotension 50-89 35-59 Normal 90-119 60-79 Pre-hypertension 120-139 80-89 Mild Hypertension 140-159 90-99 Moderate Hypertension 160-179 100-109 Severe Hypertension 180-209 110-119 Very Severe Hypertension 210-239 120-135 Other...
In MATLAB how do you write a program to determine what type of tropical system and/or category hurricane a system is depending on the wind speed. For example winds in a tropical system at 35 MPH means that the system is a tropical depression. If the winds are at 50 MPH, then the system is a tropical storm. If the winds are at 100 MPH, the system is a category two hurricane. Also, write a similar program on the Fujita...
need help to complete this java program // add appropriate import statements here. // These imports you can leave as is. import javafx.application.Application; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.canvas.Canvas; import javafx.scene.canvas.GraphicsContext; import javafx.scene.paint.Color; import javafx.stage.Stage; /** @author yourAccountNameHere */ public class ConnectTheDots extends Application { /* * Do not add code to main(). Add it below in connectTheDots instead. */ public static void main(String[] args) { launch(args); } /*...
Hi it's python I imported a data which are so many words in txt
and I arranged and reshaped with alphabetically both rows and
columns
I was successful with these steps but I am stuck with next
step
below is my code and screenshot
import numpy as np
import pandas as pd
data=pd.read_csv("/Users/superman/Downloads/words_file2.txt",header=None)
df_input=pd.DataFrame(data)
df_output=pd.DataFrame(np.arange(676).reshape((26,26)),
index =
['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'],
columns =
['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'])
df_output.index.name="Start"
df_output.columns.name="End"
df_output
This below screen shot is what I have to find
I have to find each word...
Code is in C#
Your instructor would like to thank to Marty Stepp and Hélène Martin at the University of Washington, Seattle, who originally wrote this assignment (for their CSE 142, in Java) This program focuses on classes and objects. Turn in two files named Birthday.cs and Date.cs. You will also need the support file Date.dll; it is contained in the starter project for this assignment. The assignment has two parts: a client program that uses Date objects, and a...
HELP needed urgently....Data and question is attacted below.....
Thank you in advance
there is no data link fir this data it’s all in photos.... thank
you
i
have already posted the question
We were unable to transcribe this imageNo. 2 3 4 5 6 7 8 Working Sector Public Own Public Public Private Public Private Private Own Own Private Public Public Public Private 9 10 11 12 13 Public IS 16 17 18 19 20 21 22 23 24 25...