Question: a . Create a small java program section with a for loop which inputs 1 0 numbers, and calculates their sum, then prints the sum.

a. Create a small java program section with a for loop which inputs 10 numbers, and
calculates their sum, then prints the sum.
b. Convert the for loop in part a, into a while loop to do the same task
c. Convert the for loop in part a, into a do while loop to do the same task.
Using an array, input 20 values from the user, calculate the average and print how many
values are under the average.
 a. Create a small java program section with a for loop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!