Question: Write a java program that determines how many positive and negative integers have been entered and calculates the total and average of all the entered

Write a java program that determines how many positive and negative integers have been entered and calculates the total and average of all the entered numbers. Firstly, ask the user to enter any number of integers. The user should enter 0 to indicate the end of their input. The program should then determine the number of positive and negative integers entered by the user, and print out the result. The total of all integers entered as well as the average should then be calculated and displayed.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!