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

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  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

  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.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

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