Create a script file for conversion of temperature

Assignment Help MATLAB Programming
Reference no: EM13163580

Create a script file for conversion of temperatures. Use the input function or menu function to allow the user to enter temperature scale of Fahrenheit, Celsius, Kelvin, or Rankine. If you are using the input function, tell the user to enter F for Fahrenheit, C for Celsius, K for Kelvin, or R for Rankine. Use the input function to prompt the user to enter the temperature value(s) to be converted. Next use a multi-way selection structure (either and if-elseif or switch) to convert the input temperature(s) to corresponding temperatures in the other 3 temperature scales. Next use fprintf to output the original temperatures and converted temperatures displaying 3 decimal places.

For example the following was output when the user entered Kelvin as the temperature scale of the input temperatures.

 

Enter the temperature(s) to be converted in square brackets. [373.134, 0,273.15, 233.15]

373.134 Kelvin corresponds to 99.984 degrees Celsius,

671.641 degrees Rankine and 211.971 degrees Fahrenheit.

0.000 Kelvin corresponds to -273.150 degrees Celsius,

   0.000 degrees Rankine and -459.670 degrees Fahrenheit.

273.150 Kelvin corresponds to   0.000 degrees Celsius,

491.670 degrees Rankine and 32.000 degrees Fahrenheit.

233.150 Kelvin corresponds to -40.000 degrees Celsius,

419.670 degrees Rankine and -40.000 degrees Fahrenheit.

 

 

Reference no: EM13163580

Questions Cloud

Explain the purification of a protein from bovine live : Describe in detail(ex:individual resins used, etc) the purification of a protein from bovine live that has the following characteristics: Molecular weight of 86,500, pI= 8 and precipitates out of solution at 30% ammonium sulfate
Draw a flow chart for this : Draw a Flow Chart for this 8051 assembly language program below. This program calculate y=x^2+ 2x+9. Register R0 has the x, and at the end of the program R2 should have y. (Test program for x=9).
Explain possible intermediate and the transition states : Draw the energy profile diagram to show the possible intermediate and the transition states.
Disk requests arrive at the disk driver : Disk requests arrive at the disk driver for cylinders, 45, 97,21,43,11,69,81,8,55,14,78,74, and 7. A seek takes 5 milliseconds per cylinder moved. Assume that the arm starts initially at cylinder 50 and was moving downward.
Create a script file for conversion of temperature : Create a script file for conversion of temperatures. Use the input function or menu function to allow the user to enter temperature scale of Fahrenheit, Celsius, Kelvin, or Rankine. If you are using the input function, tell the user to enter F for Fa..
Explain bromobutane and sodium azide in dmf : Consider the reaction that will take place between (S) -2-bromobutane and sodium azide in DMF. A) What is the product of this reaction (give proper stereochemistry of the product formed)
Accepts a binary number from the user : Write a Java test program that accepts a binary number from the user. You should store the binary number in a String. Your program should then use afor loop to sequence through every character in the String, counting the number of ones, zeros, and..
Program that read in from the key board a string : Write a complete C++ program that read in from the key board a string and convert all letters in the string to upper cases. You are not allowed to use toupper function.
State a certain reaction has an activation energy : A certain reaction has an activation energy of 27.03 kJ/mol. At what Kelvin temperature will the reaction proceed 3.00 times faster

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Write a function in matlab

write a function in MATLAB

  Develop a well-structured function

Develop a well-structured function to compute v as a function of t. Then use this function to generate a table of v versus t for t = -5 to 50 at increments of 0.5.

  The body fat percentage

The body fat percentage (BFP) of a person can be estimated by the formula BFP= 1.2xBMI+0.23xAGE -10.8xGEnder-0.54 where BMI is the body mass index, given by BMI = 703 W/H^2, in which W is the weight in pounds and H is the height in inches

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Determine the inputs, outputs, relevant formulas

determine the inputs, outputs, relevant formulas

  Finds the value of a using a numerical method

Finds the value of a using a numerical method

  Value for the side of the octagonal prism

Value for the side of the octagonal prism, and a scalar value for the height of the octagonal prism. Generate the x,y,z arrays that define the 9 faces of the pyramid (octagonal base and 8 triangles. Use fill3 command to create the faces (faces wit..

  Script that will graphically show the range of frequency

the script that will graphically show the range of frequencies for which the ouput amplitude is less than 70% of the input amplitude. The original problem statement

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

  Linear support vector machine svm

Write a computer program to prepare a Linear Support Vector Machine SVM.

  Write the command and assign it to variable

Write the command and assign it to variable , Write a function named function_test

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd