Write a program that prompts a user to enter numbers


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.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write a program that prompts a user to enter numbers
Reference No:- TGS0144250

Expected delivery within 24 Hours