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
1. True/False The Pressure Relief valve maintains the minimum pressure in the hydraulic circuit​
elena55 [62]
Yeah it’s true. Good luck!!
3 0
3 years ago
A direct contact heat exchanger (where the fluid mixes completely) has three inlets and one outlet. The mass flow rates of the i
lara31 [8.8K]

Answer:

Enthalpy at outlet=284.44 KJ

Explanation:

m_1=1 Kg/s,m_2=1.5 Kg/s,m_3=22 Kg/s

h_1=100 KJ/Kg,h_2=120 KJ/Kg,h_3=500 KJ/Kg

We need to Find enthalpy of outlet.

Lets take the outlet mass m and outlet enthalpy h.

So from mass conservation

m_1+m_2+m_3=m

   m=1+1.5+2 Kg/s

  m=4.5 Kg/s

Now from energy conservation

m_1h_1+m_2h_2+m_3h_3=mh

By putting the values

1\times 100+1.5\times 120+2\times 500=4.5\times h

So h=284.44 KJ

4 0
3 years ago
3) Explain how dc machines Can work as motor and generator​
weeeeeb [17]

The working principle of a DC machine is when electric current flows through a coil within a magnetic field, and then the magnetic force generates a torque that rotates the dc motor. The DC machines are classified into two types such as DC generator as well as DC motor.

5 0
1 year ago
Air at p=1 atm enters a long tube of length 2.5 m and diameter of 12 mm at an inlet temperature of Tm,i=100oC and mass flowrate
Annette [7]

Answer:

The heat transfer q = 18.32W

Explanation:

In this question, we are asked to calculate the heat entering the tube and also evaluate properties at T =400K

Please check attachment for complete solution and step by step explanation

6 0
3 years ago
Please help <br> please i need to turn this in
grigory [225]

Answer:  101 means "introductory something". The allusion is to a college course with the course code 101, which in the American system and probably others indicates an introductory course, often with no prerequisites.

Explanation:

The name Topher means Christ Bearer and is of American origin. Topher is a name that's been used primarily by parents who are considering baby names for boys. Short form of Christopher.

I am not sure but if this is a trick question then the answer lies with his name, so this is the best I got. Hope it helps!

5 0
3 years ago
Other questions:
  • A large part in a turbine-generator unit operates near room temperature and is made of ASTM A470-8 steel ( ). A surface crack ha
    11·1 answer
  • The specific gravity of a substance that has mass of 10 kg and occupies a volume of 0.02 m^3 is a) 0.5 b) 1.5 c) 2.5 d) 3.5 e) n
    11·1 answer
  • 2- A 2-m3 insulated tank containing ammonia at -20 C, 80% quality, is connected by a valve to a line flowing ammonia at 2 MPa, 6
    14·1 answer
  • The Ethernet (CSMA/CD) alternates between contention intervals and successful transmissions. Assume a 100 Mbps Ethernet over 1 k
    5·1 answer
  • List two common units of measurement to describe height
    5·2 answers
  • A weighted, frictionless piston-cylinder device initially contains 5.25 kg of R134a as saturated vapor at 500 kPa. The container
    7·1 answer
  • The Hoover Dam is 221 m tall and 379 m wide. Approximating it as a flat plate, determine the effective resultant force on the da
    6·1 answer
  • A plane wall of thickness 2L = 40 mm and thermal conductivity k = 5 W/m K experiences uniform volumetric heat generation at a ra
    15·1 answer
  • How many kg moles of Sodium Sulphate will contain 10 kg of<br> Sodium?
    10·2 answers
  • Dampness or moisture introduces ____ into the weld, which causes cracking when some metals are welded.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!