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 04/17/2011 for the course IT 210 taught by Professor Josephpillera during the Fall '10 term at University of Phoenix.
 Fall '10
 JOSEPHPILLERA

Click to edit the document details