I need help with this problem, if someone can help me with this it would be appreciated.
Part 1: Write a program that uses a while loop to loop 5 times. Each time it should prompt the user to input an integer and should add it onto a sum. After all five numbers have been added, the program should display the total and the average. The average should be double, not an int. Print the source code along with the output you get when you enter the following five numbers. 6, 8, 3, 12, 9
Part 2: Modify the program from part 1 to use a for loop instead of a while loop. Print out the source code and enter the same five numbers.
Part 3: Modify the program from part 2 to use the for loop again, but to input the number of integers to enter. Print out the source code and enter 4 the following integers 8, 11, 2, 1.
Please Help Me If you can...Thanks Alot
Edited 5 Years Ago by LegendX: n/a