Question: WRITE A JAVA ECLIPSE CODE PLEASE!!!!! [ 7 marks ] Write a program that allows a user to enter a number of integers until the

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
 WRITE A JAVA ECLIPSE CODE PLEASE!!!!! [7 marks] Write a program

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!