Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using python Write a program that asks for integer values until the user enters 0. Once the user has finished entering values, display the average

Using python

image text in transcribed

Write a program that asks for integer values until the user enters 0. Once the user has finished entering values, display the average of the positive values that were entered and the average of the negative values that were entered. DO NOT make any assumptions regarding the data that will be entered. If you are not able to calculate an average, state that no values of that type were entered. Print out the average with 2 places after the decimal point. For example: Enter a value: 20 Enter a value: -20 Enter a value: 30 Enter a value: 0 Average of positive values: 25.00 Average of negative values: -20.00

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_2

Step: 3

blur-text-image_3

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

Data Analytics And Quality Management Fundamental Tools

Authors: Joseph Nguyen

1st Edition

B0CNGG3Y2W, 979-8862833232

More Books

Students also viewed these Databases questions

Question

Consider this article:...

Answered: 1 week ago