Create a matlab program and flowchart for temperatures

Assignment Help Civil Engineering
Reference no: EM1383495

Create a MATLAB program and flowchart which will allow the user to input an unknown number of temperatures, each of which might be a temperature in Celsius, Fahrenheit, Kelvin, or Rankine, and will convert the user input temperature to each of the other temperature scales. The program should request the units of the input temperature from the user, accepting as the units the character ‘C', ‘F', ‘K', or ‘R'. The program will store the input and equivalent temperatures in vectors, using one vector for each temperature scale. Obviously, temperatures below absolute zero will not be inputs. The program will also determine the average temperatures on each scale. Output from the program will be a properly labeled table including: Temperature number (e.g., 1,2,3..), the temperature in C, F, K and R. In the last row of the table the program will output the average temperature for each scale. Do not use MATLAB vector commands (e.g. sum(X), mean(X), etc.). EXTRA CREDIT: Have the program check to make sure the entered ‘temperature unit' is valid (upper case ‘C', ‘F', R', or ‘K').

Reference no: EM1383495

Questions Cloud

Absolute pressure of the carbon dioxide in the can : The circular top of a can has a radius of .0320m. the pull-tab has an area of 3.8x10^-4 m^2. The absolute pressure of the carbon dioxide in the can is 1.40x10^5Pa. find the force that these gas generates on the top of a can?
Elastic modulus of steel : Given: elastic modulus of steel is 200 GPa, yield and ultimate tensile strength of steel are 600 and 750 MPa, respectively.
Dimensions of an acceptable box of a largest area : A delivery company accepts only rectangular boxes the sum of whose length and girth (perimeter of a cross section) are equal to 108cm. Find the dimensions of an acceptable box of a largest area.
Determine the value of po : Determine the value of Po, as a funciton of H, for these two investment alternatives to be equivalent at an interest rate of i=15% per year.
Create a matlab program and flowchart for temperatures : Create a MATLAB program and flowchart which will allow the user to input an unknown number of temperatures, each of which might be a temperature in Celsius, Fahrenheit, Kelvin, or Rankine, and will convert the user input temperature to each of the..
Runoff rate into the inlet grate : If the detention storage on the paved section is increasing at the rate of 60 m3/hr, what is the runoff rate into the inlet grate?
Calculating the force in a punch press : Calculate the force (in Kn) a punch press must exert if it is to punch out a large washer from a strip of 5-mm thick sheet steel with an ultimate shear strength of 400 MPa.
What is the new water content : A soil sample with a water content of 14.5% and unit weight of 128.2 lb/cu. ft. was dried to a unit weight of 118.8 lb/cu. ft. without changing its void ratio. What is its new water content (in %)?
Problem related to specific gravity of solids : A soil specimen has a water content of 18% and a wet unit weight of 118.5 lb/cu. ft. The specific gravity of solids is found to be 2.72. Find the:

Reviews

Write a Review

Civil Engineering Questions & Answers

  Determine the volume flow rate of water

Water with a static pressure of 1.96kN/M 2 flows through an 800 mm diameter pipe. A pitot tube pressure gage in this pipe reads a pressure of 5.88 kN/M 2 . How do you determine the volume flow rate (Q) of the water? (Q = 1.40 M^3/sec, V=2.79 M/se..

  Projectile shot vertically upward

The height (in meters) of a projectile shot vertically upward from a point 2 m above ground level with an initial velocity of 24.5 m/s is h2+24.5t-4.9t^2 after t seconds. a) When does the projectile reach its maximum height? b) What is the maximum..

  Problem on coefficient of rolling resistance

What is the minimum distance from the stalled car at which the driver could apply the brakes and still stop before hitting it? Assume coefficient of rolling resistance of 0.013.

  Duplex system with no redundancy

What is the salt usage for each regeneration if the system regenerated every 10 days? What size resin tanks (diameter, height) would be required for a duplex system with no redundancy?

  Calculate the total drilling cost

Calculate average figures for tonnes/round and powder factors in kg/tonne and Determine the drill metres required to achieve a production rate from grade control blasting.

  Resulting center of gravity

The section of the plywood in the 3rd quadrant is sawed off and the resulting piece is then glued squarely over the 4th quadrant portion of the plywood with glue of negligible weight.What are the x- and y-coordinates of the resulting center of gra..

  Determining maximum acceleration and maximum velocity

The posItIon of a particle along a straight line is given by s = (t 3 - 9t 2 + 1St) ft, where t is in seconds. Determine its maximum acceleration and maximum velocity during the time interval 0 :5: t :5: 10 s.

  Shear tension and bending of the fixed i-beam

To satisfy desige limitation it is necessary to determine the effect of the 2- kN tension in the cable on the shear tension and bending of the fixed I-beam.

  Calculating sand shear strength

Estimate the effective friction angle for the sand (assume c' = 0). Calculate the sand's shear strength (τf) on a horizontal plane at depths of the 20 ft and 50 ft.

  Dry unit weight of material

A soil borrow material in its natural state in the ground has a unit weight of 118pcf. Its natural water content is 7%. What is the dry unit weight of this material?

  Average shearing stress

Two strips of a plastics material are bonded together as shown. The average shearing stress in the glue must be limited to 1000 kpa.

  Highest point of the piping system

a) The maximum flow rate that can be achieved without cavitation occurring in the piping system. b) The maximum elevation of the highest point of the piping system to avoid cavitation.

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