Question: c++ Create a program to add all the numbers in thearray.1.Create an array of size 20.2.Ask user to enter numbers and allow the user to
c++ Create a program to add all the numbers in thearray.1.Create an array of size 20.2.Ask user to enter numbers and allow the user to stop before 20 numbers by entering the stop number.3.Takethe numbers and store them in your array.4.Go through your array and add all the numbers.5.Calculate the average of the numbers. Note: You have to keep track of the total number entered by user. Note: For display, sum and average do not iterate through all the array.6.Display the numbers, sum and average.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
