Question
b) Assume that someone has collected a set of measurements and wants some statistical data about them. Write a program that asks a user for
b) Assume that someone has collected a set of measurements and wants some statistical data about them. Write a program that asks a user for measurements and prints the average, the maximum, and minimum measurement. User should be allowed to enter as many measurements as they want, until entering a negative measurement. The negative measurement should not be processed, but is just used to indicate that the user has finished entering measurements. (Do not use a list to store the measurements) (Working in Python 3.7 (Spyder))
c) For numbers from 2 to 100 print a series of lines indicating which numbers are divisors of other numbers. For each, print out "X divides Y", where X<=Y, and both X and Y are between 2 and 100. First few lines will be 2 divides 2, 3 divides 3...etc (Working in Python 3.7)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started