Question: Write Java code to do the following: 1 . Prompt the user to enter integers ( 0 to stop ) . 2 . Find and
Write Java code to do the following: Prompt the user to enter integers to stop Find and print the average of the positive numbers entered by the user. Here is a sample run followed by explanation to help you understand how the program works: Enter an integer to sto Enter an integer to stop: Enter an integer to stop Enter an integer to stop: Enter an integer to stop: Enter an integer to stop: Enter an integer to stop: The average of the positive integers entered is:
Explanation: The sum of the positive integers entered is The average is
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
