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!!!!!
marks Write a program that allows a user to enter a number of integers until the user
inputs 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 decimal places.
Sample run
Enter the first integer to terminate:
no numbers are entered except
Enter the first integer to terminate:
Enter the next integer to terminate:
Enter the next integer to terminate:
Enter the next integer to terminate:
The number of positives is
The number of negatives is
The number of evens is
The number of odds is
The total is
The average is
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
