Question: java Enter a non-counted list of positive and negative integers. Using a Do While structure, find two separate averages: the average of the positive integers

java java Enter a non-counted list of positive and negative integers. Using a

Enter a non-counted list of positive and negative integers. Using a Do While structure, find two separate averages: the average of the positive integers and the average of the negative integers. Exit the input loop and print the two averages when a 0 is input. Sample Output: Enter integer 1 (0 to exit): 15 Enter integer 2 (0 to exit): -3 Enter integer Average of positives: Average of negatives: (0 to exit): 0

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!