This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Define count_below to store the number of salaries below the mean salary Set count_below = 0 Define count_above to store the number of salaries above the mean salary Set count_above = 0 Set loop_integer = 1 While (loop_integer – 1 < n) If (salaryarray[loop_integer – 1] < mean_salary) Increase count_below by 1 Else if (salaryarray[loop_integer – 1] > mean_salary) Increase count_above by 1 End if End while Output “The number of salaries below the mean salary is” count_below Output “The number of salaries above the mean salary is” count_above...
View Full Document
- Fall '10
- Salary, Summation, mean salary, mean salary Set