[solved]-1017 Lab Warm People S Weights Lists 1 Prompt User Enter Four Numbers Corresponding Person Q39086085


10.17 LAB: Warm up: People’s weights (Lists) (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.31 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 (Hint the actual list location will be this value minus one) and the corresponding value in kilagrams. 1 kilogram is equal to 2.2 pounds. (3 pts) Ex Enter a list 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.01 LAB 10.17.1: LAB: Warm up: People’s weights (Lists) 4/9 ACTIVITY main.py Load default template… 1 FIXME (1): Prompt for four weights. Add all weights to a list. Output list. 2 3 #FIXME (2): Output average of weights 4 5 FIXME 3): Output max weight from list. 6 7 FIXME (4): Prompt the user for a list index and output that weight in pounds and k 8 9 FIXME (5): Sort the list and output it. Show transcribed image text 10.17 LAB: Warm up: People’s weights (Lists) (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.31 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 (Hint the actual list location will be this value minus one) and the corresponding value in kilagrams. 1 kilogram is equal to 2.2 pounds. (3 pts) Ex Enter a list 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.01
LAB 10.17.1: LAB: Warm up: People’s weights (Lists) 4/9 ACTIVITY main.py Load default template… 1 FIXME (1): Prompt for four weights. Add all weights to a list. Output list. 2 3 #FIXME (2): Output average of weights 4 5 FIXME 3): Output max weight from list. 6 7 FIXME (4): Prompt the user for a list index and output that weight in pounds and k 8 9 FIXME (5): Sort the list and output it.
Expert Answer
Answer to 10.17 LAB: Warm up: People’s weights (Lists) (1) Prompt the user to enter four numbers, each corresponding to a person’s… . . .
OR

