subject

In python

(1) prompt the user to enter four numbers, each corresponding to a person's weight in pounds. store all weights in a list. output the list. (2 pts)

ex:

enter weight 1:
236.0
enter weight 2:
89.5
enter weight 3:
176.0
enter weight 4:
166.3
weights: [236.0, 89.5, 176.0, 166.3]
(2) output the average of the list's elements with two digits after the decimal point. hint: use a conversion specifier to output with a certain number of digits after the decimal point. (1 pt)

(3) output the max list element with two digits after the decimal point. (1 pt)

ex:

enter weight 1:
236.0
enter weight 2:
89.5
enter weight 3:
176.0
enter weight 4:
166.3
weights: [236.0, 89.5, 176.0, 166.3]

average weight: 166.95
max weight: 236.00
(4) prompt the user for a number between 1 and 4. output the weight at the user specified location and the corresponding value in kilograms. 1 kilogram is equal to 2.2 pounds. (3 pts)

ex:

enter a list index location (1 - 4):
3
weight in pounds: 176.00
weight in kilograms: 80.00
(5) sort the list's elements from least heavy to heaviest weight. (2 pts)

ex:

sorted list: [89.5, 166.3, 176.0, 236.0]

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 01:00, Trumpman137
Which option marks all modification made within a document? review comment track changes balloons
Answers: 1
image
Computers and Technology, 22.06.2019 08:00, Leggett8152
What best describes a career pathway in a lodging career? a worker starts out as an amusement attendant, then becomes a recreation worker, and then becomes a gaming worker within five years. a worker starts out as a bell hop, then becomes a night clerk, and then becomes a hotel manager within five years. a worker starting out as a tour guide, then becomes a travel clerk, and then becomes a travel agent within five years. a worker starts out as a server, then becomes a food preparer, and then becomes a head chef within five years.
Answers: 1
image
Computers and Technology, 22.06.2019 08:30, gg68814
1.the index finger on your right hand types the f r v 4 j u m 7 h y 6 n lo.9 j u 7 m g t 5 b 2.if you need to multiply 400, 2, and 1 ½, what would you type on the numeric keypad? 400*2*1.5 400/2*1.5 400/2/1.5 400*2*1½ 3.select all examples of proper keyboarding technique. rest your fingers gently on the home row or home keys. slouch in your chair. rest your palms on the keyboard. relax your fingers. keep your hands lower than your elbows.
Answers: 1
image
Computers and Technology, 23.06.2019 02:30, hailey5campbelp7d1c0
What is the power dissipated by a resistor with a current of 0.02 a and a resistance of 1,000 ? a. 200 w b. 20 w c. 0.4 w d. 4 w
Answers: 1
You know the right answer?
In python

(1) prompt the user to enter four numbers, each corresponding to a person's we...

Questions in other subjects: