Question
I need assistance with python programming for these 5 questions. (1) Prompt the user to enter a series of numbers, each corresponding to a person's
I need assistance with python programming for these 5 questions.
(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 'q'. Store all weights in a list and the print the list.
(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.
(3) Output the highest weight with two digits after the decimal point.
(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).
(5) Sort the list's elements from least heavy to heaviest weight.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started