This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: 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
This note was uploaded on 04/03/2011 for the course IT 210 taught by Professor Josephpillera during the Spring '10 term at University of Phoenix.
- Spring '10