WRITE A JAVA ECLIPSE CODE PLEASE!!!!!
[7 marks] Write a program that allows a user to enter a number of integers until the user
inputs 0 (zero). The program then prints the total number of positive, negative, even and odd
integers that have been entered. Your program should also print the sum and average of the
input values (not counting zeros). The average should be rounded to 2 decimal places.
Sample run
Enter the first integer ( 0 to terminate): 0
no numbers are entered except 0
Enter the first integer ( 0 to terminate): 3
Enter the next integer ( 0 to terminate): 1
Enter the next integer ( 0 to terminate): 6
Enter the next integer ( 0 to terminate): 0
The number of positives is 3
The number of negatives is 0
The number of evens is 1
The number of odds is 2
The total is 10
The average is 3.33
[7 marks] Write a program that allows a user to enter a number of integers until the user
inputs 0 (zero). The program then prints the total number of positive, negative, even and odd integers that have been entered. Your program should also print the sum and average of the input values(not counting zeros).The average should be rounded to 2 decimal places
Sample run
Enter the first integer (0 to terminate): 0 no numbers are entered except o
Enter the first integer (o to terminate): 3 Enter the next integer (o to terminate): 1 Enter the next integer (o to terminate): 6 Enter the next integer (0 to terminate): 0 The number of positives is 3 The number of negatives is 0 The number of evens is 1 The number of odds is 2 The total is 10 The average is 3.33