Question: Create a Python program that does the following: To take in five more integers from the user To calculate the sum, average, and product of

Create a Python program that does the following:

    • To take in five more integers from the user 
    • To calculate the sum, average, and product of all five numbers
  • Add logic to calculate the largest and the smallest of the five numbers
    • You cannot use the min() and max() functions
  • Report the sum, average, and product back to the user with formatted output

Your output should resemble the following:

Please enter the first number: 3 Please enter the second number: 4


Please enter the first number: 3 Please enter the second number: 4 Please enter the third number: 5 Please enter the fourth number: 6 Please enter the fifth number: 7 The sum is: 25 5 The average is: The product is: 2520 7 The largest number is: The smallest number is: 3

Step by Step Solution

3.37 Rating (153 Votes )

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 Programming Questions!