Question: Question 17 Write a Complete Java Program which does the following: 1. Prompt the user for how many integers they would like to enter (n).
Question 17 Write a Complete Java Program which does the following: 1. Prompt the user for how many integers they would like to enter (n). 2. Prompt the user (n times) for each successive integer value. The prompts should be sequentially numbered as "[n] Enter Integer:" (See the example below). 3. Display the "positive" if the sum of the values entered is greater than 0, "negative if the sum of the values entered is less than 0, "Zero" if the sum is 0. Sample Run of the program (SAMPLE user input shown in bold): Example 1: How many integers would you like to enter: 3 [1] Enter Integer: 1 [2] Enter Integer: 23 [3) Enter Integer: -2 Positive Example 2: How many integers would you like to enter: 2 [1] Enter Integer: 1 [2] Enter Integer: -1 Zero
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
