I need to know if I'm doing this right. I just recently started Psuedocoding and I'm still confused about it. If I was to test this code would it work?
Declare Employees[100] as String
Declare Salaries[100] as Integer
Declare K as Integer
Declare Average as Integer
Set Sum = 0
Set K = 1
Set Average = 0
Write "Enter Total Employee Count."
Input Employees
FOR K = 1 Add 1 to Average Then
Write "Enter the Employee Name and salary"
Input Name, Salary
Set Employees[K]=Name
Set Salaries[K]=Salary
Set Sum=Sum+Salary
END FOR
Set Average=Sum/Average
Set Below = 0
Set Above = 0
If K = Add 1 to Average Then
If Salaries=[K] < Average Then
Set Below = Below + 1
End If
If Salaries=[K] > Average Then
Set Above = Above + 1
End If
END If
Christopher_7 0 Newbie Poster
Hiroshe 499 Posting Whiz in Training
Christopher_7 0 Newbie Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.