Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Your task in this programming assignment is to write a Python program that generates a list of random integers, such that both its length and

Your task in this programming assignment is to write a Python program that generates a list of random integers, such that both its length and the minimum and maximum values added to the list are provided by the user. Subsequently, display the list, followed by statistics about the list. Here's output of a sample run (user input is shown in bold): How many random integers would you like to add to the list? 10 What would you like the minimum value to be? -50 What would you like the maximum value to be? 50 The list: [-46, 43, 34, 48, 7, 31, 36, -11, 39, -9] The mean of the list is 17.2. The median of the list is 32.5. The range of the list is 94.

!!!MUST BE DONE IN PYTHON 2.7!!!

########################################################################################### # Name: # Date: # Description: ###########################################################################################

# function that prompts the user for a list size, minimum and maximum values, creates the list, and returns it # you must use the list functions discussed in class to add integers to the list

# function that receives the list as a parameter, and calculates and returns the mean

# function that receives the list as a parameter, and calculates and returns the median

# function that receives the list as a parameter, and calculates and returns the range

############################################### # MAIN PART OF THE PROGRAM # implement the main part of your program below # comments have been added to assist you ############################################### # create the list nums = fillList()

# display the list # there is no need to write/call your own function for this part

# calculate and display the mean

# calculate and display the median

# calculate and display the range

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

Concepts Of Database Management

Authors: Joy L. Starks, Philip J. Pratt, Mary Z. Last

9th Edition

1337093424, 978-1337093422

More Books

Students also viewed these Databases questions

Question

If the joint pdf of (X, Y) is Find the pdf of X2 + Y2. f(x,y)--22e

Answered: 1 week ago

Question

the head of a university police force

Answered: 1 week ago

Question

Design a training session to maximize learning. page 309

Answered: 1 week ago