Write a program that prompts a user to enter numbers, determines how many positive and negative values have been entered, and computes the sum and average of the numbers entered, not counting zeros. Your program should prompt the user for the number of values that will be entered. It should also contain a while loop to make sure the user enters an integer for the number of values and a for loop to prompt the user for values and calculate the statistics.
Display the output in this order: number of positive values, number of negative values, sum and average.
Recently Asked Questions
- 1. (4pts) Transistor size If there are 1 billion transistors uniformly distributed (without space) on a square silicon chip of area, what is the linear size of
- Please explain. You have an output (units) of 2, at a price of 16, and a marginal cost of 4. How do you get a marginal revenue of 14? You have an output