Write a program that declares an array of 20 doubles and reads the values from the user. Now your program should compute the average of these numbers and then tell for each number whether it is above, below or equal to the average

Recommended Answers

All 5 Replies

We don't do your homework for you. Write the code, post it here along with the errors you are getting, and we may help you...

How can you tell this is homework? It could be a real business application, I know I'd buy it!

Using the Standard Template Library (STL) vector might make your life easier.

OK, I've written it, and it does compute the average of these numbers and then tell for each number whether it is above, below or equal to the average. What now?

Member Avatar for misi

What now?

Where is the code?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.