### Thread: URGENT help needed Array and average

1. No Profile Picture
Registered User
Devshed Newbie (0 - 499 posts)

Join Date
May 2013
Posts
2
Rep Power
0

#### URGENT help needed Array and average

Hi there, im studying IT and my current module is introduction to programming. I have only basic knowledge of programming but this handbook is truly rubbish!

The question is :
An array called numbers contains 10 valid integer numbers. Determine and display how many of these values are greater than the average value of all the values of the elements. Hint: Calculate the average before counting the number of values higher than the average

Could anyone help me out?
2. You are supposed to post the code you have done so far and people here would point you to the right direction.
3. No Profile Picture
Registered User
Devshed Newbie (0 - 499 posts)

Join Date
May 2013
Posts
2
Rep Power
0

#### My apologies

Originally Posted by kathyrollo
You are supposed to post the code you have done so far and people here would point you to the right direction.
Sorry!

Forgot that part.

Algorithm
~input
for num=o to 9
display "provide the first number", num+1
enter num

next
~calculations
num / 10 = avg

If num> avg
Then
?????

How to count evey number thats more than the average number in the array.

Thanks
4. No Profile Picture
Registered User
Devshed Newbie (0 - 499 posts)

Join Date
May 2013
Posts
4
Rep Power
0
just declare an integer variable
and increment it in scope of "if then" statement