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

  Linear support vector machine svm

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

  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.

  An efficient human identification using gait analysis

An Efficient Human Identification Using Gait Analysis, Apply specific approach for Pattern Recognition,Implement this approach in MATLAB,Compare and discuss the results with others.

  Finds the value of a using a numerical method

Finds the value of a using a numerical method

  Matlab program which will determine your vehicle fuel usage

Create a MATLAB program which will determine your vehicle fuel usage (MPG, miles/gallon) rating for a user defined number of trips ('for' repetition structure). Review the voiceover supplied for an example of the required input/output from this progr..

  Find general solution of the ordinary differential equation

Find a general solution of the following ordinary differential equations and find the general solution of the following ordinary differential equation

  Determine the optimal linear predictor

Determine the optimal linear predictor for a given order N and DPCM simulation and write a graphical user interface that has least the following functions

  Using matlab and for loops

Using MATLAB and for loops, provide an animation that follows the below steps: Start with a square at the origin with each side being 5 units long. Imagine someone kicked the box and animate it moving on a projectile motion trajectory. Hint: look at ..

  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 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..

  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

  Generate a sphere of diameter 3. create 3 vectors

Generate a sphere of diameter 3. Create 3 vectors representing the translation of this sphere along the x, y, and z axes. Generate the correct vectors given the description below: The sphere should be translated to (-10, -10, -10).

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