Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a Python program that processes a list of data to return the minimum, maximum, and average values in the list for all data values

Create a Python program that processes a list of data to return the minimum, maximum, and average values in the list for all data values in a user-specified range. Details:

The data are numbers between 1 and 100 (perhaps representing sensor readings). Your code must work on any list of data in that range. Two samples:

data = list(range(1,101))

data = [1, 9, 13, 25, 42, 55, 59, 63, 68, 69, 70, 70, 70, 70, 72, 75, 85, 99, 90, 85, 44, 23, 55, 66, 77]

Prompt the user for two numbers: a lower bound (inclusive) and an upper bound (inclusive).

For each data item only process it if it is within the lower and upper bounds (inclusive).

Compute the minimum, maximum, and average values (in the bounded 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

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

More Books

Students also viewed these Databases questions