Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1) Ask the user to enter X numbers into a list. 2) Put those numbers into a list, and show the list. 3) Calculate and

1) Ask the user to enter X numbers into a list.

2) Put those numbers into a list, and show the list.

3) Calculate and show the sum, average, min, max of those numbers.

4) You are not allowed to use any pre-existing python functions such as sample(), sum(), min(), max(), average(), sort(), sorted()!!!...unless you write them yourself.

5) Now make another list, but with double the values of the first list.

HINT's to find Smallest:

1) Use one loop to make a list of X numbers.

2) After the above loop, make Smallest equal to the first item on the list

3) Use a second loop to check if any ITEM on the list is less than Smallest, if so then Smallest = ITEM

Sample Run:

How many numbers would you like to enter? 11

Enter number1: 26

Enter number2: 23

...

Enter number 11: 34

List 1:[ 26, 23, 48, 32, 44, 21, 32, 20, 49, 48, 34 ]

Sum = 377

Average = 377 / 11 = 34.3

Smallest = 21

Largest = 49

List 2:[ 52, 46, 96, 64, 88, 42, 64, 40, 98, 96, 68 ]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

What are (a) Brush border enzymes? (b) Chylomicrons?

Answered: 1 week ago

Question

national market strategy or

Answered: 1 week ago