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]
3 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]3 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
What major advancement in machine tools occurred in the 1970s and what benefits did it provide? describe in your own words.
mixer [17]

Answer:

I'm just a seventh grader

4 0
3 years ago
Read 2 more answers
An engineer lives in Hawaii at a location where the annual rain fall is 300 inches. She decides to use the rain to generate elec
Alex777 [14]

Answer:

80.7lbft/hr

Explanation:

Flow rate of water in the system = 3.6x10^-6

The height h = 100

1s = 1/3600h

This implies that

Q = 3.6x10^-6/[1/3600]

Q = 0.0000036/0.000278

Q = 0.01295

Then the power is given as

P = rQh

The specific weight of water = 62.3 lb/ft³

P = 62.3 x 0.01295 x 100

P = 80.675lbft/h

When approximated

P = 80.7 lbft/h

This is the average power that could be generated in a year.

This answers the question and also corresponds with the answer in the question.

4 0
3 years ago
A 1 m3 rigid tank initially contains air whose density is 1.18kg/m3. The tank is connected to a high pressure supply line throug
Elanso [62]

To solve this problem it is necessary to apply the concepts related to density in relation to mass and volume for each of the states presented.

Density can be defined as

\rho = \frac{m}{V}

Where

m = Mass

V = Volume

For state one we know that

\rho_1 = \frac{m_1}{V}

m_1 = \rho_1 V

m_1 = 1.18*1

m_1 = 1.18Kg

For state two we have to

\rho_2 = \frac{m_2}{V}

m_2 = \rho_2 V

m_1 = 7.2*1

m_1 = 7.2Kg

Therefore the total change of mass would be

\Delta m = m_2-m_1

\Delta m = 7.2-1.18

\Delta m = 6.02Kg

Therefore the mass of air that has entered to the tank is 6.02Kg

5 0
3 years ago
Consider a refrigerator that consumes 320 W of electric power when it is running. If the refrigerator runs only one quarterof th
ryzh [129]

Answer:

$5.184

Explanation:

The cost can be calculated using the formula: Cost = Load \ factor \times Number \ of \ hours \ \\M_{month} = M_{units} \times W\\

Before using this, we require the following conversions:

<em>320 W → kW:</em>

\frac {320}{1000} = 0.32

<em>30 Days → Hours:</em>

30 \times 24 = 720

Using the above stated formula:

M_{month} = 0.09 \times 0.32 \times \frac{1}{4} \times 720 = 5.184

4 0
3 years ago
If your accelerator pedal gets stuck, what is the first thing you should do?
Anna35 [415]

If your accelerator gets stuck down, do the following: Shift to neutral. Apply the brakes. Keep your eyes on the road and look for a way out.If your accelerator gets stuck down, do the following:

Shift to neutral.

Apply the brakes.

Keep your eyes on the road and look for a way out.

Warn other drivers by blinking and flashing your hazard lights.

Try to drive the car safely off the road.

Turn off the ignition when you no longer need to change direction.

8 0
3 years ago
Other questions:
  • A mercury thermometer has a cylindrical capillary tube with an internal diameter of 0.2 mm. If the volume of the thermometer and
    10·1 answer
  • What are some advantages of generating electrical energy from tides instead of from fossil fuels
    13·1 answer
  • What is the difference between the pressure head at the end of a 150m long pipe of diameter 1m coming from the bottom of a reser
    7·1 answer
  • The water of a 14’ × 48’ metal frame pool can drain from the pool through an opening at the side of the pool. The opening is abo
    13·1 answer
  • Mobility refers to the ability to?
    12·1 answer
  • Different metabolic control systems have different characteristic time scales for a control response to be achieved. Match the t
    6·1 answer
  • Component(s) that only allow(s) electrons to flow in one direction. Mark all that apply
    15·1 answer
  • What Number Am I?
    13·1 answer
  • What is 39483048^349374*3948048/3i4u4
    15·1 answer
  • Whose responsibility is it to provide direction on correct ladder usage?<br> select the best option.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!