This preview shows pages 1–2. Sign up to view the full content.
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
This note was uploaded on 01/25/2011 for the course IT 210 taught by Professor Josephpillera during the Spring '10 term at University of Phoenix.
- Spring '10