Question: Write a MATLAB script which creates a conversion table from Centigrade to Fahrenheit and Kelvin and prints it on the screen. Use the following formula

 Write a MATLAB script which creates a conversion table from Centigrade

Write a MATLAB script which creates a conversion table from Centigrade to Fahrenheit and Kelvin and prints it on the screen. Use the following formula for conversion; note that on your table the first column is Centigrade, second column Fahrenheit, and third column Kelvin. F = 32 + 1.8C and K=C+273.15 The size of this table should be specified following the user entries. Therefore, your program algorithm should consist of the following steps: Code should ask user to enter the following values; start temp. in C (Code should check if it is between -10 to 210. if not, askes the user to enter a new value) Stop temp. in C (Code should check if it is between -10 to 210. if not, askes the user to enter a new value) Temp. Increment in C (Code should check if it is less than stop temp. - start temp.). if not, askes the user to enter a new value) Code should print the table on the screen following the below header: 'Centigrade Fahrenheit Kelvin' Hint: For example, by running your code for a start temp. as 10 C, stop temp. as 65 C, and a 5 C increment, the command window should represent: Enter the lowest temperature of your table (your entry should be between -10 and 200 Centigrade) Enter the highest temperature of your table (your entry should be between -10 and 200 Centigrade) 65 Enter the increment of your table (your entry should be between 1 and 55.00) 5 Centigrade Fahrenheit Kelvin 10.00 50.00 283.15 15.00 59.00 288.15 20.00 68.00 293.15 25.00 77.00 298.15 86.00 303. 15 35.00 95.00 308.15 40.00 104.00 313. 15 45.00 113.00 318.15 50.00 122.00 323.15 55.00 131.00 328.15 60.00 140.00 333.15 65.00 149.00 338.15 10 30.00 Copy and paste your script into the provided space

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!