Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Can an impairment loss be reversed?

Answered: 1 week ago