answersLogoWhite

0


Best Answer

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

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Input a list of employee names and salaries and determine the mean average salary as well as the number of salaries above and below the mean?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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 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.


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 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.


How do you determine the levels of stress in an organisation and the likelihood that it will be a causal factor in injury and disease?

You can assess the stress levels of an organisation via a number of avenues, a few o f these are:conducting employee satisfaction surveysusing performance evaluations or counseling to get feedback from employeesactively listening to employee complaint and concernsobserving working relationshipsobserving workplace satisfactionmonitoring productivity to determine declineasking for employee input with regard to systems and proceduresanalysing accident and illness statistics to identify stress related pattensanalysing absenteeism and attrition statistics - high turnover and absenteeism are good indicators of employee discontentanalysing the number of employee complaints and grievances [formal and informal


To create a simulation of photosynthesis in a forest of 50000 maple trees a scientist needs to determine the average number of leaves on an actual maple tree. Which of the following is the best course?

determine the average number of leaves for 10 randomly selected maple trees


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.


What is the meaning of median salary or average salary?

average salary is a pretty generic term and does not tell you how the number is computed. Usually, but not always, it would be the sum of the salaries divided by the number of salaries. This is known as the mean. The median salary is the "middle" value. That is to say, if you listed all the salaries from lowest to highest, the median would be right in the middle. A more precise statistical definition might say it is the value that separates the higher half of a sample or a probability distribution from the lower half. When you say average, the might indicate the mean salary, but we don't know for sure. The mean is what I described in the first paragraph.


What are the largest expense categories incurred by health care service?

Nonpayment for services rendered is one of the largest expenses incurred in the health care organization. Claims, by far, is number one. Employee expenses, number two - salaries, benefits, compliance, payroll taxes, etc.