Answered You can hire a professional tutor to get the answer.
Write a program that reads integers from the keyboard until a user enters zero (a sentinel-controlled loop). You should prompt the user for the...
Intro to Java Programming and CS. Please help me with the following question:
3. Write a program that reads integers from the keyboard until a user enters zero (a sentinel-controlled loop).You should prompt the user for the inputs.Please use a do. .while loop. The program should print this information in the order given, provide text in the output that describes whatis being shown : a. The sum of all the numbers enteredb. The largest number entered (write the code to do this, rather than calling a function like max) 0. The smallest number entered (write the code to do this, rather than calling a function like min)d. Whether the sum is odd or even (use the mod operator) Notes: 1. Do not store the values in an array. Both positive and negative numbers are valid inputs. You should uselnteger.MAX_VALUE and lnteger.MlN_VALUE as initial values for your variables that keep track of the smallest andlargest values entered by the user. 2. The sentinel value (zero) should not be treated as an integer input. In other words, if the numbers entered are 7, 2, 1, 8, 0the smallest value is 1, not 0. Example outputforthe following inputs:2, 20, 2, 0Sum = 24Largest number = 20Smallest number = 2The sum is even