This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: 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 End For End While 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...
View Full Document
- Spring '10