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 HAVEI need help with this, don't know what I am doing wrong...

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, in try: main () get total) for value in user nums: tive num 11st5 user nums[O five num 11st index0 while index

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!