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
Write a Nested While Loop that will increment the '*' from 1 to 10.
andrey2020 [161]

Answer:

The program is as follows:

i = 1

while(i<11):

   j = 1

   while(j<=i):

       print('*', end = '')

       j += 1

   i += 1

   print()

Explanation:

Initialize i to 1

i = 1

The outer loop is repeated as long as i is less than 11

while(i<11):

Initialize j to 1

   j = 1

The inner loop is repeated as long as j is less than or equal i

   while(j<=i):

This prints a *

       print('*', end = '')

This increments j and ends the inner loop

       j += 1

This increments i

   i += 1

This prints a blank and ends the inner loop

   print()

8 0
3 years ago
A refrigerator operating on the Carnot cycle is used to make ice. Water freezing at 32oF is the cold reservoir. Heat is rejected
Mnenie [13.5K]

Answer:

Explanation:

From the given information:

Water freezing temp. T_L = 32 ^0 \ F

Heat rejected temp T_H = 72 ^0 \ F

Recall that:

The coefficient of performance is:

COP_{ref} = \dfrac{T_L}{T_H - T_L} \\ \\  = \dfrac{32+460}{(72 +460) -(32+460)} \\ \\ =\dfrac{492}{532 -492} \\ \\ = \dfrac{492}{40} \\ \\ COP_{ref} = 12.3

Again:

The efficiency given by COP can be represented by:

COP = \dfrac{Q_L}{W} \\ \\ W = \dfrac{Q_L}{COP} \\ \\ W = \dfrac{2000 \ lbm \times 144 \ Btu/lbm}{12.3} \\ \\ W = 23414.63 \ Btu

Finally; the power input in an hour can be determined by using the formula:

Power= \dfrac{W}{t} \\ \\  Power = \dfrac{23414.63 \ Btu}{ 1 \ hr} \\ \\  Power = \dfrac{23414.634 \times 1055.056 \ J}{1 \times 3600} \\ \\  Power  = 6.86 \ kW

In hp; since 1 kW = 1.34102 hp

6.86kW will be = (6.86 × 1.34102) hp

= 9.199 hp

7 0
3 years ago
3. When performing overhead work on scaffolding, what protective measures must be taken to prevent objects
hjlf

Answer:

Toeboards, debris nets, or canopies

Explanation:

7 0
3 years ago
A computer maintenance company wants to 'capture' the knowledge that employees carry around in their heads by creating a databas
galina1969 [7]

Answer: The answer is A. The company is trying to transfer intellectual capital to a knowledge management system

5 0
3 years ago
A double-threaded Acme stub screw of 2-in. major diameter is used in a jack having a plain thrust collar of 2.5-in. mean diamete
Temka [501]
This is the answer for the question

6 0
3 years ago
Other questions:
  • To operate a vehicle in Florida, you must
    10·2 answers
  • Methane gas at 25°C, 1 atm enters a reactor operating at steady-state and burns with 80% theoretical air entering at 227°C, 1 at
    10·1 answer
  • True or False:<br> Less than 2% of the U.S. population make their living producing food and fiber.
    13·1 answer
  • A common way of measuring the thermal conductivity of a material is to sandwich an electric thermofoil heater between two identi
    9·1 answer
  • A horse on the merry-go-round moves according to the equations r = 8 ft, u = (0.6t) rad, and z = (1.5 sin u) ft, where t is in s
    5·1 answer
  • One cubic meter of nitrogen at 40°C and 340kPa is compressed isoentropically to 0.2m^3. Calculate the final pressure when the ni
    9·1 answer
  • “In a trusting relationship, confidential information is kept confidential.” Explain what the limits to confidentiality are and
    14·1 answer
  • ¿Por qué la lógica de proposiciones es conocida también como lógica de las proposiciones sin analizar?
    11·1 answer
  • What is the difference between the elements of design and the principles of design? Define at
    7·1 answer
  • What could I do to make this bridge hold more weight without making it heavier? Lateral bracing and a design on the top will be
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!