Question: Write a java program called Tester. The program will ask the user to enter an integer one at a time until the user enters
Write a java program called Tester. The program will ask the user to enter an integer one at a time until the user enters -1 to end the program. Each integer the user enters will be tested to see if it is greater than or less than the sum of all previously entered integers. If it is the same as the sum the program should indicate that as well. When the user enters -1 the program should display the final sum and terminate. For example: Enter an Integer or -1 to quit: 5 5 is greater than Sum 0 Enter an Integer or -1 to quit: 2 2 is less than Sum 5 Enter an Integer or -1 to quit: 7 7 is the same as Sum 7 Enter an Integer or -1 to quit: -1 The final sum is 14
Step by Step Solution
There are 3 Steps involved in it
Answer Code importingrequiredclasses importjavautil publiccl... View full answer
Get step-by-step solutions from verified subject matter experts
