0

Hello
This my first programming class and I noticed that someone posted the following Simply Array Process Pseudocode which is in regard to:
Input a list of employee names and salaries, and determine the mean (average) salary as well as the number of salaries above and below the mean.
My question is what [100] in the first line of the Pseudocode stands for? please I need help

Declare Names[100], Salaries[100]
Set Sum = 0
Set Count1 = 0
Set K = 1
Write “Enter Employees Name and Salary.”
Write “Enter *,0 when done.”
Input Name, Salary
While Salary <> “0”
    Set Count1 = Count1 + 1
    Set Sum = Sum + Salary
    Write “Enter another Employee Name and Salary (enter *,0 when done)”
    Input Name, Salary
End While
Set Average = Sum / Count1
Set Count2 = 0
Set Count3 = 0
For K = 1 Step 1 to Count1
    If Salary[K] > Average Then
        Set Count2 = Count2 + 1
    End If
    If Salary[K] < Average Then
        Set Count3 = Count3 + 1
    End If
End For
Write “The Average Salary is: $”, Average
Write “The number of Salaries Above the Average Salary is:”, Count2
Write “The number of Salaries Below the Average Salary is:”, Count3

Edited by mike_2000_17: Fixed formatting

2
Contributors
2
Replies
17
Views
4 Years
Discussion Span
Last Post by feedo1969
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.