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
Solid Isomorphous alloys strength
adell [148]
Lol please give me points
5 0
3 years ago
At 3M, the "Pollution Prevention Pays" (3P) program has generated over 11,000 3P projects that eliminated more than two billion
VMariaS [17]

Answer:

Green Marketing

Explanation:

Green marketing is defined as marketing efforts designed to produce, promote, and reclaim environmentally sensitive products. It is one of the the different concepts of social responsibility.

8 0
3 years ago
Define escape velocity​
irakobra [83]
The lowest velocity which a body must have in order to escape the gravitational attraction of a particular planet or other object.
4 0
3 years ago
A 0.25in diameter copper rod BC is securely attached between two identical 1in diameter steel rods (AB and CD).
sashaice [31]

Explanation:

Below is an attachment containing the complete question and solution

5 0
3 years ago
Which field in a Transmission Control Protocol (TCP) header is chosen from ephemeral ports?
zalisa [80]

Answer:

<u>Source Port</u>

Explanation:

When a connection is establish for an application, it assigns a port that is not in use as the source port. Such ports are known as ephemera ports, which are not related to specific protocol and are only allocated for the period of the connection. All data received on this port (until the connection is disconnected) is sent on to that application.

8 0
3 years ago
Other questions:
  • You want a potof water to boil at 105 celcius. How heavy a
    11·1 answer
  • What is the subtotal for the building materials in the bill? The subtotal should be the cost of the materials only. Don't add ta
    9·1 answer
  • When you first start a car after it has been sitting for more than an hour, it pollutes up to ......times more than when the eng
    7·2 answers
  • Define the hydraulic diameter for a rectangular duct
    7·1 answer
  • If 65 gallons of hydraulic oil weighs 350lb, what is the specific weight of the oil in lb/ft^3?
    14·1 answer
  • Which sentence is an example of formal language?
    6·1 answer
  • Io[iiiiiioooiiijjsjsj
    5·2 answers
  • HELP PLS Leaders usually start as
    14·1 answer
  • Do the coil resistances have any effect on the plots?
    10·1 answer
  • According to Gary Sirota, the proposed Bajagua wastewater treatment plant is a beneficial solution because __________.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!