This is the code you asked

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

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 http://www.justanswer.com/computer-programming/1v0fn-wk-checkpoint-simple-array-process-input-list-employee.html#ixzz1V209zgd6...
View Full Document

Ask a homework question - tutors are online