Simple array process

Simple array process - Set count 3 =0 For k= 1 step 1 to...

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

View Full Document Right Arrow Icon
Decare Employees [50], Salaries [50] Set sum = 0 Set count = 0 Write “ enter employee name and salary” Enter, 0 when done Input employee name and salary While salary <> “ ‘0’ Set count 1+ count + 1 Set sum= sum+ salary WRITE “Enter enter new employee name and number or 0 to quit” Input employee name End while Set mean= sum/count1 Set count 2 = 0
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Set count 3 =0 For k= 1 step 1 to count1 If salary < then set count 2 = count 2 + 1 if salary > then set count 3 = count 3 +1 end if write” average salaries are” write “above salaries are” count 3 write “below salaries are” count 2 I am still guessing on this stuff but basedthis from example 3...
View Full Document

This note was uploaded on 05/16/2011 for the course IT 210 taught by Professor Josephpillera during the Spring '10 term at University of Phoenix.

Page1 / 2

Simple array process - Set count 3 =0 For k= 1 step 1 to...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online