Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 HAVEimage text in transcribed

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

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

Database Management Systems Designing And Building Business Applications

Authors: Gerald V. Post

1st Edition

0072898933, 978-0072898934

More Books

Students also viewed these Databases questions

Question

Explain how psychologists study health and wellness.

Answered: 1 week ago