Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Numerical Methods Use the following equations, which describe the relationships between temperatures in degrees Fahrenheit (TF), degrees Celsius (TC), Kelvin (TK), and degrees Rankine (TR):

Numerical Methods

image text in transcribedimage text in transcribed

Use the following equations, which describe the relationships between temperatures in degrees Fahrenheit (TF), degrees Celsius (TC), Kelvin (TK), and degrees Rankine (TR): TK = TC + 273.15 TF = 9/5 TC + 32 TR = TF + 459.67 Write a function that generate a conversion table from Celsius to Kevin, to Fahrenheit , and to Rankine. Input the starting temperature, increments between lines, and the number of lines of the table to print out. Example: Given starting TC of 0 degree Celsius, increments of 5 degree Celsius between lines, and a total of 4 lines in the table. Input are [0, 5, 4] The output should read (note there is no text): 0 273. 1500 32.0000 491.6700 5.0000 278.1500 41.0000 500.6700 10.0000 283.1500 50.0000 509.6700 15.0000 288.1500 59.0000 518.6700 Function Reset MATLAB Documentation ovum WNP function temptable = temperature (TCstart, increments, lines) % This is where you write your code. % temptable is an output, representing the temperatures you converted % temperature is the name of the function, DO NOT change! % TCstart is an input, representing the starting temperature in Celsius % increments is an input, representing the increments between lines % lines is an input, representing the number of lines in the table % Names of input variables (TCstart, increments, lines) can be changed, but not the order of the variables. Make sure your answers are only values, nothing else (i.e. no table titles and such). N Code to call your function C Reset 1 * You can write more code here if you like to test your function. 2 % You would write the following to test the example case given in th problem. 3 % If your code (function) is correct, you should get the table given in the problem. 5 temperature(0, 5,4) Run Function

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

If ( A^2 - A + I = 0 ), then inverse of matrix ( A ) is?

Answered: 1 week ago

Question

What is computer neworking ?

Answered: 1 week ago

Question

Comment should this MNE have a global LGBT policy? Why/ why not?

Answered: 1 week ago