Posted by **nethiyaa** on Tuesday, May 10, 2011 at 2:26am.

write a program that reads ten numbers, computes their average and find out how many numbers are above average.

- c++ -
**Dr Russ**, Tuesday, May 10, 2011 at 4:37am
We are not going to do it for you. If you want to post what you have done and why it doesn't work as expected, we can make suggestions to correct/improve the program.

- c++ -
**gabbi**, Sunday, January 24, 2016 at 6:05pm
int userVal=0;

int sum=0;

int avg=0;

int aboveAvg=0;

for(int i=0;i<11;i++)

{

cout<< "Enter a value"<<endl;

cin>> userVal;

sum=userVal+sum;

}

avg=sum/10;

cout<<avg<<endl;

for (int j=0;j<11;j++)

{

if(userVal>avg)

{

aboveAvg=userVal;

cout<<"Numbers above the average are "<<aboveAvg<<endl;

}

}

## Answer This Question

## Related Questions

- c++ - write a program that reads ten numbers, computes their average and find ...
- Programming - I need your help to write a program using visual basic 2010 for ...
- Programming - I suppose to write a program that calculates the average of up to ...
- Programming - Here is the question that I need help to write the code for the ...
- Programming - Read two numbers from the keyboard Display the menu options as ...
- MATH - WRITE A SIMPLE BUT A COMPLETE FORTRAN PROGRAM TO COMPUTE THE AVERAGE OF ...
- computer - Write an algorithm for a program that accepts a set of numbers and ...
- Computer program - Need to know if I have it right or not in the program please...
- Math - The average of the first 4 numbers is 14. The average of the next 6 ...
- Math - The average of 3 numbers is 45. If one of the numbers is 43, what is the ...

More Related Questions