Answered step by step
Verified Expert Solution
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
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.00Step 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