Question
I need help with this, don't know what I am doing wrong... Part 1: Number Analysis Program Design a program that asks the user to
I need help with this, don't know what I am doing wrong...
Part 1: Number Analysis Program Design a program that asks the user to enter a series of 5 numbers. Non-numeric data should be filtered out as the sample output shows. The program should store the numbers in a list and then display the following data:
The lowest number in the list
The highest number in the list
The total of the numbers in the list
The average of the numbers in the list First, the program should compute the required data using the functions like min for the lowest, max for the highest, and sum for the total. Second, the program should compute the required data without using those built-in functions. The program should be written in one code in which two of the solutions are put. Sample Output(s)
Enter number 1 of 5: 98
Enter number 2 of 5: 76
Enter number 3 of 5: a10 Non-numeric data! Another run Enter number 1 of 5: 10
Enter number 2 of 5: 15
Enter number 3 of 5: 20
Enter number 4 of 5: 30
Enter number 5 of 5: 25
The results without using the built-in functions:
-------------------------------------------------
Low: 10.0
High: 30.0
Total: 100.00
Average: 20.00 The results using the built-in functions:
------------------------------------------
Low: 10.0
High: 30.0
Total: 100.00
Average: 20.00
HERE IS WHAT I HAVE
Python 3.7.2 Shell O Xggh.py-ClUsers 171641 Desktoplggh.py (3.72) File Edit Format Run Options Window Help File Edit Shell Debug Options Window Help Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 22:20:52) [MSC v.1916 32 bit der main0 (Intel)] on win32 Type "help", "copyright", "credits" or "license )" for more information intro( user numbers) get total) get _average ) get results) RESTART: C:NUsers 17164\Desktop ggh.pY NAME 3/8/19 Number Analysis Program Explanation of program def intro: Enter number 1 10 Enter number 2 10 Enter number 3 10 Enter number 4 10 Enter number 5 10 Traceback (most recent call last) print ("NAME") print("3/8/19" print ("Number Analysis Program") print ("Explanation of program") print(" def user numbers () File "C:Users1171641Desktopiggh.pY", line 48, inStep 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