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

  Secant method to tryt to find out the root

create a function that will use the secant method to tryt to find out the root

  Write matlab scripts

Write MATLAB scripts for to accept two numbers from the user; Display all prime numbers between these two numbers.

  Write a system program for bus arbiter

The bus arbiter is a device used in multi-master system with shared bus. It is used to allocate the control of the shared system bus to one master at a time depending priority.

  Create from the stack a structure string stac

Design a structure stack that represents a stack of elements of some arbitrary type. Include the functions: create(returns an empty stack), push(add an element to the top of the stack and return the resulting stack), pop(delete the top element and re..

  Implement linear support vector machine to classify data

code to implement linear Support vector machine to classify data (without using matlab built in function).

  Compute and flote 4 average temperature profiles

Generate by measdata.m an array A withsize (365,24), containing temperature measurements for an entire year [1 January,..., 31 December], 24 hours a day [00.00h,...,23.00h].

  Plot the pressure surface versus latitude and longitude

Plot the pressure surface versus latitude and longitude as a surface plot

  Travelling salesman problem involves

The Travelling Salesman problem involves a salesman who has to visit a number of cities in a single closed tour. The salesman always starts and ends the tour in his home city and visits each other city on the tour exactly once.

  One-dimensional steady-state heat flow

A one-dimensional steady-state heat flow, the mathematical formulation of problem - find out the temperature differences at each locations and calculate the temperatures at each locations

  Fit the exponential function to the relaxation data

Fit the exponential function to the relaxation data and report the filename as well as the A, tau and B values and run all 3 functions in sequence to analyze ALL data

  Determine the specular component

Reparemeterizing each pixel point using spherical coordinates and rotation RGB color space to SUV color space in the paper

  Modeling mechanical systems with matlab

MATLAB, developed by MathWorks, is a popular software that is widely used in areas of engineering, science, education and finance. Simulink is an environment for multidomain simulation and Model-Based Design for dynamic and embedded system.

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