answersLogoWhite

0

Declare Names[100], Salaries[100]

Set Sum = 0

Set Count1 = 0

Set K = 1

Write "Enter Employees Name and Salary."

Write "Enter *,0 when done."

Input Name, Salary

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

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 theAverage Salary is:", Count2

Write "The number of Salaries Below theAverage Salary is:", Count3

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How do you determine the number of employee for a company?

it is required about how many employees work in a company


What is the difference between mean and median salary?

the mean is the average of all the salaries an the the median is the number that falls in the middle


I have total payroll number. how do i determine percentage salary that is dr vs percentage that is employee?

Speak to you HR people.


What is the average of 48 and 67?

Normally, at least two numbers are used to determine an average. If there is only one number, then the average is the number itself, so the answer is 48.


What is a median salary?

The median salary is the middle value of a salary distribution, where half of the salaries are below it and half are above it. It provides a better representation of typical earnings than the average salary, especially in cases where there are outliers or extreme values that can skew the average. To find the median salary, you arrange all the salaries in ascending order and identify the middle value. If there is an even number of salaries, the median is the average of the two middle values.


How can one determine the average monthly income?

To determine the average monthly income, add up all sources of income for a month and divide by the number of sources.


What is employee-accident rate?

It is the number of accidents that occur in a stated period of time divided by the [usually] the average number of employees during that time.


What is the batting average of 24 hits out of 75 times at bat?

.320 ... to determine a player's batting average, divide the number of at bats into the number of hits.


How can one determine the average cost in accounting?

To determine the average cost in accounting, you add up all the costs and then divide by the number of items or units. This gives you the average cost per item or unit.


What is the average number of paid holidays in the construction industry?

The average number of paid holidays in the construction industry is 10 per year. This may vary depending on the employer as well as the position held by the employee.


The Average number of the letters?

The average number of letters in a given word is typically calculated by dividing the total number of letters in a text by the total number of words. This metric can be used to determine the average word length in a document or piece of writing.


How do you calculate average sick time used per employee for a given year?

Calculate the total sick hours (or days) used in the year and divide it by the number of employees. The employee number may be tricky as I am sure with turnover it is never constant.