1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Hunter-Best [27]
2 years ago
11

Prompt the user to enter five numbers, being five people's weights. Store the numbers in an array of doubles. Output the array's

numbers on one line, each number followed by one space. (2 pts)
Ex:Enter weight 1:236.0Enter weight 2:89.5Enter weight 3:142.0Enter weight 4:166.3Enter weight 5:93.0You entered: 236.000000 89.500000 142.000000 166.300000 93.000000
Engineering
1 answer:
atroni [7]2 years ago
6 0

Answer:

See below in the explanation section the Matlab script to solve the problem.

Explanation:

prompt='enter the first weight w1:  ';

w1=input(prompt);

wd1=double(w1);

prompt='enter the second weight w2:  ';

w2=input(prompt);

wd2=double(w2);

prompt='enter the third weight w3:  ';

w3=input(prompt);

wd3=double(w3);

prompt='enter the fourth weight w4:  ';

w4=input(prompt);

wd4=double(w4);

prompt='enter the first weight w5:  ';

w5=input(prompt);

wd5=double(w5);

x=[wd1 wd2 wd3 wd4 wd5]

format short

You might be interested in
An electrical heater is a form of sensible heating process, and heats 0.1m/s of air from 15°C and 80% RH to 50°C? The barometric
lawyer [7]

Answer:

The heater load =35 KJ/kg

Explanation:

Given that

At initial condition

Temperature= 15°C

RH=80%

At final condition

Temperature= 50°C

We know that in sensible heating process humidity ratio remain constant.

Now from chart

At temperature= 15°C and RH=80%

h_1=38 \frac{KJ}{kg},v=0.8 \frac{m^3}{kg}

At  temperature= 50°C

h_2=73 \frac{KJ}{kg}

So\ the\ heater\ load =h_2-h_1

The heater load = 73 - 38 KJ/kg

The heater load =35 KJ/kg

3 0
2 years ago
Discuss typical advantages and disadvantages of an irrigation system?
trapecia [35]
Advantages include low costs and minimal labor.Water stays in the root zone, and foliage stays dry. Drawbacks to surface irrigation include potential overwatering and wasteful runoff.
4 0
3 years ago
5. Name two health problems that fume can cause?<br> a)....<br> b)......
Vlad [161]

Answer:

A) Cancer of the Lungs

B)Larynx and Urinary Tract, as well as nervous system and kidney damage

Explanation:

5 0
3 years ago
Read 2 more answers
Explain why the scenario below describes a team of mechanical engineers.
babymother [125]

Explanation:

because mechanical engineers fix air conditioners cars and other stuffs

5 0
2 years ago
Read 2 more answers
What is closest in meaning to a guild?<br> O rally<br> O framework<br> union<br> O embargo
Degger [83]

Answer:

Union

Explanation:

The correct option is - union

Reason -

Guild is an association of people for mutual aid or the pursuit of a common goal.

Rally is come together in order to provide some support or make a shared effort.

Framework is a basic structure underlying a system, concept, or text.

Union is a club, society, or association formed by people with a common interest or purpose.

An embargo is a government order that restricts commerce with a specified country or the exchange of specific goods.

5 0
2 years ago
Other questions:
  • Assume that we have a BS with a 6-dB antenna gain and an MS with antenna gain of 2 dB, at heights 10 m and 1.5 m, respectively,
    5·1 answer
  • What is the difference between CNC and NC​
    15·1 answer
  • 1)A wheel is used to turn a valve stem on a water valve. If the wheel radius is 1 foot and the stem, (axle), radius is .5 inches
    10·1 answer
  • What are example for mantle
    5·1 answer
  • How does the two-stroke Otto cycle differ from the four-stroke Otto cycle?
    6·1 answer
  • El protozoos es del reino protista?
    14·2 answers
  • How many kg moles of Sodium Sulphate will contain 10 kg of<br> Sodium?
    10·2 answers
  • Can someone please help me with this <br>I've an exams tomorrow ​
    7·1 answer
  • Where do you prefer to live?
    5·2 answers
  • While, Do...while, and For loops can best be characterized as which of the following?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!