This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: mean_salary = sum_salary / n Output “The mean salary is” mean_salary Define count_below to store the number of salaries below the mean salary Set count_below = 0 IT/210 CheckPoint: Simple Array Process 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
- Spring '10
- mean salary, mean salary Set