Prepare a program to enter a scalar value of temperature

Assignment Help MATLAB Programming
Reference no: EM13304799

1) Two gymnasts are competing with each other. Their scores are shown in Table

Gymnastics Scores


Event

Gymnast 1

Gymnast 2

Pommel horse

10.

9.700

Vault

10.

10.

Floor

10.

10.

Rings

9432

10.

High bar

10.

9.

Parallel bars

9.

10.


(a) Write a program that uses find to determine how many events each gymnast won. (b) Use the mean function to determine each gymnast's average score.

2) Create a function called g that satisfies the following criteria: For x < -r, g(x) - -1 For x -gr and x g(x) - cos( x) For x i z, g(x) - -1 Plot your results for values of x from -2w to -21r. Choose your spacing to create a smooth curve.

3) Create a program that prompts the user to enter a scalar value of temperature. If the temperature is greater than 98.6°F, send a message to the command window telling the user that he or she has a fever.

Reference no: EM13304799

Questions Cloud

Calculate the effective cost of both proposals : Calculate the effective cost of both proposals, and indicate which proposal should be accepted.
Calculate the velocity and flow rate of acetone at the exit : A tank containing acetone at 20 oC has a drain pipe connected vertically at the bottom. The pipe is made of galvanized iron, 0.5 in NPS Schedule 40 with length L= 2m. The acetone depth in the tank is H= 5 m.
Determine the critical point tc and the critical do : If the critical point in a DO sag curve is found to be 18km downstream from the discharge point of untreated wastewater, would you expect the critical point to move upstream (toward the discharge point)
Estimate the effective cost of the commercial paper : Sara was also approached by a bank, wanting her company's business, offered a letter of credit back-up facility with an annual fee of 50 basis point rather than a line of credit. Sara wondered how this would affect the cost of the commercial paper..
Prepare a program to enter a scalar value of temperature : Create a program that prompts the user to enter a scalar value of temperature. If the temperature is greater than 98.6°F, send a message to the command window telling the user that he or she has a fever.
Design a simply supported one-way reinforced concrete slab : Design a simply supported one-way reinforced concrete floor slab to span 10 ft and carry a service live load of 175 psf and a service dead load of 25 psf. Use fc' = 3000 psi and fy = 60,000 psi.
What is its unlevered beta : El Capitan Foods has a capital structure of 40% debt and 60% equity, its tax rate is 35%, and its beta (leveraged) is 1.15. Based on the Hamada equation, what would the firm's beta be if it used no debt, i.e., what is its unlevered beta?
Determine the latent heat of fusion of the unknown material : An unknown material has a normal melting/freezing point of -26.3 ° C, and the liquid phase has a specific heat capacity of 160 J/(kg · C °). What is the latent heat of fusion of the unknown material
What is the incremental profit over the profit earned : At the price calculated in part a, what is the incremental profit over the profit earned before the introduction of the RoverPlus branded dog food?

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Write a simple program that stores the high temperatures

A meteorological company wants you to write a simple program that stores the high temperatures and low temperates for each of the months of the year. After consulting with trusted programming partners, you come up with a great idea

  Write a function in matlab

write a function in MATLAB

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Perform gauss-jordan elimination

Write a matlab function to perform gauss-jordan elimination with pivoting. Modify the pivoting so that it is using the row with the highest absolute value rather than the first non-zero row.

  A good way to structure this program

A good way to structure this program is to read in each "number" as a string of characters, look at the first character to determine what kind of number it is (hex, binary, decimal), and then call an appropriate function to convert the string into..

  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.

  Write a script that simulates a casino machine

Write a script that simulates a casino machine. To play a single round on the machine user pays $ 5. Now when the user start the machine, the machine rolls a pair of dice (simulate both dice with help of random number generator) and user only wins..

  Create a function that returns true i

Create a function that returns true if the input is a numeric matrix and false otherwise.

  Mobile robot control and potential field

Write a MATLAB code to compute forces due to each obstacle and goal. Compute total force on vehicle at point(x,y).

  Characterizing population of about countries

Select 10 features characterizing the population of about 100 countries. load it into Matlab. Normalize the data between 0 and 1. (min, max and minmax are some useful Matlab commands)

  Stepper motor driven xy table

Stepper Motor Driven XY Table - Use Matlab and Labjack to acquire digital inputs from limit switches and use Matlab to analyze acquired data

  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.

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