WHILE Loops Other than the items listed above, the TA should not need to cover a
ID: 3671954 • Letter: W
Question
WHILE Loops
Other than the items listed above, the TA should not need to cover any additional programming concepts.
For this task, you will calculate the average of a set of numbers as provided by the user. Continue to prompt the user until the user enters a negative number (do not count this number in the average). Here is an example (bold underline indicates user input)
Enter number 1: 3
Enter number 2: 7
Enter number 3: 4
Enter number 4: 1
Enter number 5: -1
The average of the above 4 numbers is: 3.75