Question: i need help with this matlab question Asap Write a MATLAB script which creates a conversion table from Centigrade to Fahrenheit and Kelvin and prints
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. 1. 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) 10 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) Centigrade Fahrenheit Kelvin 10.00 50.00 283.15 59.00 288.15 68.00 293.15 77.00 298.15 303.15 95.00 308.15 104.00 313.15 45.00 113.00 318.15 122.00 323. 15 328.15 5 15.00 20.00 25.00 30.00 35.00 40.00 86.00 50.00 55.00 60.00 65.00 131.00 140.00 149.00 333.15 338.15
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
