Question: need done in Python 1.1 Program: Weight Data (1) Prompt the user to enter a series of numbers, each corresponding to a person's weight in





1.1 Program: Weight Data (1) Prompt the user to enter a series of numbers, each corresponding to a person's weight in pounds. Keep asking for weights until the user enters a 'Q or a ' Store all weights in a list and the print the list. (2 points) An example output is Enter weight: 228.9 Enter weight: 105.3 Enter weight: 89.7 Enter weight: 163.0 Enter weight: Holghts 228.9 pounds 105.3 pounds 89.7 pounds 163.0 pounds Type here to search (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 two digits after the decimal point (1 point) An example output is: Enter weight: 228.9 Enter weight: 105.3 Enter weight: 89.7 Enter weight: 163.0 Enter weight: Weights: 228.9 pounds 105.3 pounds 89.7 pounds 163.0 pounds Average weight: 146.73 (3) Output the highest weight with two digits after the decimal point (1 point) An example output is Enter weight: 228.9 Type here to search y library > CSCI 145: Intermediate Programming home > 1.1: Program: Weight Data zyBooks catalog Help/FAQ (3) Output the highest weight with two digits after the decimal point (1 point) An example output is: Enter weight: 228.9 Enter weight: 105.3 Enter weight: 89.7 Enter weight: 163.0 Enter weight: Weights: 228.9 pounds 105.3 pounds 89.7 pounds 163.0 pounds Average weight: 146.73 Max weight: 228.90 (4) Prompt the user to get a specified weight (using an integer 1 for the first entry, 2 for the second entry, etc.). Check the entry to make sure it's valid and print the corresponding weight at the user specified location along with corresponding value in kilograms. (1 kilogram is equal to 2.2 pounds) (3 points) An example output with a valid number is: . e to search (4) Prompt the user to get a specified weight (using an integer, 1 for the first entry, 2 for the second entry, etc.). Check the entry to make sure it's valid and print the corresponding weight at the user specified location along with corresponding value in kilograms. (1 kilogram is equal to 22 pounds). (3 points) An example output with a valid number is: Enter weight: 228.9 Enter weight: 105.3 Enter weight: 89.7 Enter weight: 163.0 Enter weight: Weights: 228.9 pounds 105.3 pounds 89.7 pounds 163.0 pounds Average weight: 146.73 Max weight: 228.90 Enter a list index location: Weight in pounds: 89.70 here to search os Weight in pounds: 89.70 Weight in kilograms: 40.77 An example output with an invalid number is: Enter weight: 228.9 Enter weight: 105.3 Enter weight: 89.7 Enter weight: 163.0 Enter weight: Weights: 228.9 pounds 105.3 pounds 89.7 pounds 163.0 pounds Average weight: 146.73 Max weight: 228.90 Enter a list index location: Entry not valid! (5) Sort the list's elements from least heavy to heaviest weight. (2 points) re to search (5) Sort the list's elements from least heavy to heaviest weight. (2 points) Ex Enter weight: 228.9 Enter weight: 105.3 Enter weight: 89.7 Enter weight: 163.0 Enter weight: Weights: 228.9 pounds 105.3 pounds 89.7 pounds 163.0 pounds Average weight: 146.73 Max weight: 228.90 Enter a list index location: Weight in pounds: 89.70 Weight in kilograms: 40.77 Sorted weight list: 189.7,105.3, 163.0, 228.9) Type here to search
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
