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

  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