Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can someone help me correct with this Spyder python. I don't know where do I get wrong Assume that someone has collected a set of

can someone help me correct with this Spyder python. I don't know where do I get wrongimage text in transcribedimage text in transcribed

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 the minimum measurement. Users should enter data elements one at a time from the keyboard. All data elements should be positive numbers. The user should be allowed to enter as many measurements as they want and should signify the end of the list by entering a negative value. The negative value should not be processed as part of the data set - it simply indicates that the user has finished entering measurements. Note: Do not use any containers (e.g. list/tuple/array) to store the measurements. Do not use the built-in statistics functions min(), max(). You should implement a loop and do data input/analysis inside the loop. print("Enter numbers: ",1,3,5,4,6) num = float(input()) maxVal = num minVal = num total = num count = 1 while(num > 0): num = float(input()). if(num num): minVal = num total += num print("Maximum =",maxVal) print("Miniimum =",minval) print("Average =",(total/count))||

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

Microsoft Visual Basic 2005 For Windows Mobile Web Office And Database Applications Comprehensive

Authors: Gary B. Shelly, Thomas J. Cashman, Corinne Hoisington

1st Edition

0619254823, 978-0619254827

More Books

Students also viewed these Databases questions

Question

In what ways do organisations possess knowledge?

Answered: 1 week ago