Simple Array Process

Simple Array Process - For x = 1 To Employees Count If...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Simple Array Process Declare Employee Names[100], Salaries[100] Set x = 1 Set Sum = 0 Set Mean = 0 Write “Enter the number of Employees” Input Employees Count For x = 1 To Employees Count Write “Enter the Employee Name and Salary” Input Name, Salary Set Employee Names[x] = Name Set Salaries[x] = Salary Set Sum = Sum + Salary End For Set Mean = Sum / Employees Count Set Count Above = 0 Set Count Below = 0
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: For x = 1 To Employees Count If Salaries[x] > Mean Then Set Count Above = Count Above + 1 End If If Salaries[x] < Mean Then Set Count Below = Count Below + 1 End If End For Write “The Average Salary Is”, Mean Write “The Number Of Salaries Above The Average Is”, Count Above Write “The Number Of Salaries Below The Average Is”, Count Below...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online