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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:00
The fourth generation of computers emerged between 1970s and 1980s. which technological advancement brought about this generation of computers? which computer architecture was used most in this generation?
Answers: 3
question
Computers and Technology, 23.06.2019 13:00
In excel - calculate the actual increase/decrease from first quarter to the second quarter then subtract subtract first quarter value from second quarter total then divide result by first quarter value
Answers: 1
question
Computers and Technology, 24.06.2019 02:20
The first time a user launches the powerpoint program, which view is shown allowing the user to access recent presentations or create new presentations based on templates?
Answers: 1
question
Computers and Technology, 24.06.2019 03:00
Using a conditional expression, write a statement that increments numusers if updatedirection is 1, otherwise decrements numusers. ex: if numusers is 8 and updatedirection is 1, numusers becomes 9; if updatedirection is 0, numusers becomes 7.
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
question
Biology, 23.06.2019 10:00
question
Mathematics, 23.06.2019 10:00
Questions on the website: 13722359