{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Week 5 Checkpoint Simple Array - End If If Salary(K<...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Week 5 Checkpoint Simple Array Pseudocode Declare Names(100), Salaries(100 Set Sum = 0 Set Count1 = 0 Set K = 1 Write “Enter Employee Name, Salary” 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
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: End If If Salary(K) < Average Then Set Count 3 = Count3 + 1 End If Write “The Average Salary is”, Average Write “The Number of Salaries greater than the Average Salary is”, Count2 Write “ The Number of Salaries lower than the Average Salary is”, Count3 End Program...
View Full Document

{[ snackBarMessage ]}