Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Programming in C# Please help me with my homework

Write a console program that allows a user to enter up to 10 numbers. (The program will stop accepting numbers either when 10 numbers have been entered or when a sentinel value of 0 is entered.)  Once the program has finished gathering numbers, it should display the average of the entered numbers and the difference of each number from that average. Use named constants when appropriate. Comment your code. Hints: to do this you'll need two loops. The first loop collects the numbers and stores them in the array (you can also count and accumulate the numbers with this loop). After that loop you can figure out the average (make sure you divide by the actual number of numbers entered, not just 10). The second loop will then display only the numbers entered and the difference mentioned above.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question