This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Declare X  Set Sum = 0 Set Count1 = 0 While Salary <> 0 Set Count1 = Count1 + 1 Set X [Count1] = Num Set Sum = Sum + Num End While Set Average = Sum / Count1 Set Count2 = 0 Set Count3 = 0 For K = 1 Step 1 To Count1 If X [K] > Average Then Set Count2 = Count2 + 1 If X [K] < Average Then Set Count3 = count3 + 1 End If End For Display Results Write “The average is:” Average Write “The number of items above the average is: ”, Count2 Write “The number of items above the average is: ”, Count3...
View Full Document
- Spring '10
- Salary, new file, Salary File