Question: In Python 3 please. 1.4 Program: Weight Data (1) Prompt the user to enter a series of numbers, each corresponding to a person's weight in

In Python 3 please.  In Python 3 please. 1.4 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 wieghts until the use enters a
'Q' or a 'q'. Store all weights in a list and the
print the list. (2 pts) An example output is: Enter weight: 228.9
Enter weight: 105.3 Enter weight: 89.7 Enter weight: 163.0 Enter weight: Weights:

1.4 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 wieghts until the use enters a 'Q' or a 'q'. Store all weights in a list and the print the list. (2 pts) An example output is: Enter weight: 228.9 Enter weight: 105.3 Enter weight: 89.7 Enter weight: 163.0 Enter weight: Weights: 226.0 pounds 105.3 pounds 89.7 pounds 166.3 pounds (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) An example output is: Enter weight: 228.9 Enter weight: 105.3 Enter weight 3: 89.7 Enter weight 4: 163.0 Enter weight: Weights: 226.0 pounds 105.3 pounds 89.7 pounds 166.3 pounds Average weight: 147.55 (3) Output the highest weight with two digits after the decimal point (1 pt) An example output is: Enter weight: 228.9 Enter weight: 105.3 Enter weight 3: 89.7 Enter weight 4: 163.0 Enter weight: Weights: 226.0 pounds 105.3 pounds 89.7 pounds 166.3 pounds Average weight: 147.55 Max weight: 228.90 (4) Prompt the user to get a specified weight (using an integer, 1 for the first entry, 2 for teh 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 pts) An example output with a valid number is: Enter weight: 228.9 Enter weight: 105.3 Enter weight 3: 89.7 Enter weight 4: 163.0 Enter weight: Weights: 226.0 pounds 105.3 pounds 89.7 pounds 166.3 pounds Average weight: 147.55 Max weight: 228.90 Enter a list index location: 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 3: 89.7 Enter weight 4: 163.0 Enter weight: Weights: 226.0 pounds 105.3 pounds 89.7 pounds 166.3 pounds Average weight: 147.55 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 pts) EX Enter weight: 228.9 Enter weight: 105.3 Enter weight 3: 89.7 Enter weight 4: 163.0 Enter weight: Weights: 226.0 pounds 105.3 pounds 89.7 pounds 166.3 pounds Average weight: 147.55 Max weight: 228.90 Enter a list index location: Weight in pounds: 89.70 Weight in kilograms: 40.77 Sorted weight list: [89.7,105.3,163.0, 228.91

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!