revisedessays logo
  • Our services
    • Write My Essay
    • Term Paper Services
    • Research Paper Services
    • Business Plan and Case Study
    • Dissertation and Capstone project
    • Nursing Help Services
    • Online Coursework Help
    • Proofreading and Editing
    • Finance and Accounting Help
    • Programming Help Services
  • About Us
    • How it works
    • Who are we
    • FAQ
  • Pricing
  • Contact Us
  • My account
  • Order now
Order Now
computer-science

(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.

1 min read
Posted on 
April 3rd, 2022
Home computer-science (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.

(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. 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. (3) Output the max list element with two digits after the decimal point. 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. 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. Ex: Sorted list: [89.5, 166.3, 176.0, 236.0] Output the average and max weights as floating-point values with two digits after the decimal point, which can be achieved as follows: print(‘{:.2f}’.format(your_value))

Order an Essay Now & Get These Features For Free:

Turnitin Report

Formatting

Title Page

Citation

Outline

Place an Order
Share
Tweet
Share
Tweet
Calculate the price
Pages (275 words)
$0.00
revisedessays
About Us
  • How it works
  • Who are we
  • FAQ
Location
High Falls Business Center 250 Mill Street Rochester, NY 14614
© 2023 revisedessays. All rights reserved.
revisedessays will be listed as ‘revisedessays’ on your bank statement.

WhatsApp us