Question: please write in Java format. i did not mean to post two pictures. they are the same. Directions and example Write a program that asks

Directions and example Write a program that asks the user to enter numbers and keeps a running total (the sum of all of the numbers the user has entered so far). The program should stop when the running total becomes greater than 100. When the program stops, it should tell the user how many numbers they entered before the total reached or exceeded 100. Below are some examples: Enter a number: 14 Enter a number: 18 Enter a number: 27 Enter a number: 74 You entered 3 values before the total was greater than 100. Enter a number: 14 Enter a number: -10 Enter a number: 97 You entered 2 values before the total was greater than 100. Directions and example Write a program that asks the user to enter numbers and keeps a running total (the sum of all of the numbers the user has entered so far). The program should stop when the running total becomes greater than 100. When the program stops, it should tell the user how many numbers they entered before the total reached or exceeded 100. Below are some examples: Enter a number 14 Enter a number: 18 Enter a number: 27 Enter a number: 74 You entered 3 values before the total was greater than 100. Enter a number: 14 Enter a number: -10 Enter a number: 97 You entered 2 values before the total was greater than 100
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
