Question: I need help with this in Java Problem: Develop a Java program to allow a user to enter a series of integers from the keyboard.
Problem: Develop a Java program to allow a user to enter a series of integers from the keyboard. The last number entered is always-1 and this is the only time it is entered. Display the list of numbers entered then find and display the sum and average of all positive integers entered from the keyboard. Also print the difference between each positive number entered and the average. Run your program using the following data: Run 1: 0,-2,-4,-5,-1 Run 2: -1 Run 3: 4, 8, 10, 12,-5, 20,-1 Display the output for each sample run
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
