Week 5 Checkpoint Simple Array

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

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

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

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

View Full Document
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

## This note was uploaded on 09/08/2011 for the course IT/210 IT/210 taught by Professor Donking during the Summer '11 term at University of Phoenix.

### Page1 / 2

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

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online