1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
lianna [129]
3 years ago
5

Prompt the user to enter four numbers, each corresponding to a person's weight in pounds. Store all weights in a list. Output th

e 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)
Computers and Technology
1 answer:
Lesechka [4]3 years ago
6 0

Answer:

# FIXME (1): Prompt for four weights. Add all weights to a list. Output list.

weight_one=float(input('Enter weight 1:\n'))

weight_two=float(input('Enter weight 2:\n'))

weight_three=float(input('Enter weight 3:\n'))

weight_four=float(input('Enter weight 4:\n'))

weights=[weight_one,weight_two,weight_three,weight_four]

print(weights)

# FIXME (2): Output average of weights.

average_weight=(weight_one + weight_two + weight_three + weight_four) / 4

print('Average weight:', "%.2f" % average_weight)

# FIXME (3): Output max weight from list.

weights.sort()

max_weight= weights[3]

print('Max weight:', "%.2f" % max_weight)

# FIXME (4): Prompt the user for a list index and output that weight in pounds and kilograms.

print(input('Enter a list index location (0 - 3):'))

print('Weight in pounds:', weights)

kilograms = float(weights) * 2.2

print('Weight in kilograms:')

# FIXME (5): Sort the list and output it.

weights.sort()

print(weights)

Explanation:

You might be interested in
50 points!!!!!
prohojiy [21]
I would say a. correcting others' spelling and grammar.
3 0
4 years ago
Read 2 more answers
Help please if you know answer like these I’ll provide my discord.
Natasha_Volkova [10]

ins can insert a time and date.

5 0
3 years ago
1. USES COMPUTER TO EXPRESS HIMSELF ARTISTICALLY
Inessa05 [86]

Answer:

  1. A
  2. D
  3. D
  4. C
  5. C
  6. D
  7. B
  8. C
  9. D
  10. A
  11. D
  12. D
  13. D
  14. D
  15. D
  16. C
  17. A
  18. B
  19. B
  20. A

Explanation:

IT WAS A PLEASSURE

5 0
3 years ago
Write a python program called loop that computes and prints the sum of numbers from 1 to 10
galina1969 [7]

Here is code in Python.

# variable to store sum of numbers from 1 to 10

sum=0

for i in range(1,11):

   #calculating the sum

   sum+=i

#printing the sum

print("sum of numbers from 1 to 10 is:")

print(sum)

Explanation:

Declare a variable "sum" to store the sum of all the numbers from 1 to 10.

In the for loop i will iterate from 1 to 10 only and each value of i is added to

"sum". then it will print the sum of all the number.

Output:

sum of numbers from 1 to 10 is:                                                                                            

55

6 0
4 years ago
Which of the following makes miscommunication more likely in e-mail?
vichka [17]

Answer:

all of the above

Explanation:

mark brainlist

3 0
4 years ago
Other questions:
  • What operating system uses Fastboot?
    10·2 answers
  • Why should a person consider doing an apprenticeship?
    7·1 answer
  • In an ethernet network, the signal that is sent to indicate a signal collision is called a ________ signal.
    7·1 answer
  • 23
    15·1 answer
  • If you have a slow computer and add a lot of filters what might hapopen'
    12·2 answers
  • Which of the following is NOT a goal of a Material Requirements Plans (MRP)?
    12·1 answer
  • Program MATH_SCORES: Your math instructor gives three tests worth 50 points each. You can drop one of the test scores. The final
    7·1 answer
  • When you navigate inside a compressed folder, you click the
    6·1 answer
  • A regional bank implemented an automated solution to streamline their operations for receiving and processing checks/cheques. Th
    8·1 answer
  • Write the following program: Use struct data type to store information about courses. Every course is characterized by the follo
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!