Create a program that prompts the user to enter a scalar


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.

Solution Preview :

Prepared by a verified Expert
MATLAB Programming: Create a program that prompts the user to enter a scalar
Reference No:- TGS0643490

Now Priced at $40 (50% Discount)

Recommended (98%)

Rated (4.3/5)