This is the code you asked

This is the code you asked - End If If Salaries[x< Mean...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the code you asked  Declare EmpNames[100], Salaries[100]  Set x=1  Set Sum=0  Set Mean =0  Display "Enter the number of Employees"  input EmployeesCount  FOR x = 1 to EmployeesCount DO             Display "Enter the Employee Name and sallry"       input Name,sallary       Set EmpNames[x]=Name       Set Salaries[x]=sallary       Set Sum=Sum+sallary  END FOR  Set Mean=Sum/EmployeesCount  Set CntAbove =0  Set CntBelow=0  FOR x = 1 to EmployeesCount DO      If Salaries[x] > Mean Then       Set CntAbove = CntAbove + 1 
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: End If If Salaries[x] < Mean Then Set CntBelow = CntBelow + 1 End If END FOR Display "The Average Salary is: $"+Mean Display "The number of Salaries Above the Average Salary is:"+CntAbove Display "The number of Salaries Below the Average Salary is:"+CntBelow Read more: WK 5 Checkpoint- Simple Array Process Input a list of employee - JustAnswer
View Full Document

This note was uploaded on 08/28/2011 for the course IT 210 taught by Professor Josephpillera during the Summer '10 term at University of Phoenix.

Ask a homework question - tutors are online