Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following program fills a list called values with ten random numbers between 1 and 100, and computes both the maximum and the minimum of

The following program fills a list calledvalueswith ten random numbers between 1 and 100, and computes both the maximum and the minimum of the list simultaneously using a while loop.

Sample Run

The list is [50, 65, 81, 73, 58, 61, 91, 80, 39, 2]

Maximum value = 91

Minimum value = 2

from random import randint

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

Java Concepts Late Objects

Authors: Cay S. Horstmann

3rd Edition

1119186714, 978-1119186717

More Books

Students also viewed these Programming questions

Question

Factor the given expressions completely. 36a 4 + 1

Answered: 1 week ago