# computer science

posted by .

Pseudo code: 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

• computer science -

I will show a brief pseudocode for you to expand on. You can post the improved version for discussions.
// data input
total <- 0
while(more employees)
{
input employee.name, employee.salary
total <- total+employee.salary
increment count
}
if count equals zero, quit

// calculate mean
mean <- total/count

// calculate above and below mean
highCount <- 0
equalCount <-0
lowCount <- 0
while(more employees)
{
compare employee.salary with mean and increment highCount, equalCount or lowCount according to the case
}

// Output
Print highCount, equalCount and lowCount.

## Similar Questions

1. ### Statistics- quick! Is this right?

I need to verify one of my answers quickly...the problem is: The mean annual salary for classroom teachers is \$43,658. Assume a standard deviation of \$8000. 1) Determine the sampling distribution of the sample mean for a sample of …
2. ### Computer Programming

I was wondering if someone could review my pseudocode to see if I got this right. Here is the question: Input a list of employee names and salaries, and dtermine the mean (average) salary as well as the number of salaries above and …
3. ### programming

John: 50,000 Joe: 30,000 Jane: 60,000 Jill: 25,000 Total: 165,000 Declare employees [4] Of Reals Declare Sum, Average As Real Declare salaries As Integer Set Sum = 0 For salaries = 1 Step 1 To 4 Write “Average salaries ”, salaries …
4. ### statistics

The distribution of weekly salaries at a large company is right skewed with a mean of \$1000 and a standard deviation of \$350. What is the probability that the sampling error made in estimating the mean weekly salary for all employees …
5. ### college statistics

The CEO of ABC manufacturing commissioned a study to look at the differences between the current salaries of her employees (n = 474) and their starting salaries. The study collected current and beginning salary data for each of the …
6. ### programming concepts

Input a list of employee names and salaries stored in parallel arrays. The sal-aries should be floating point numbers in increments of 100. For example, a salary of \$ 36,000 should be input as 36.0 and a salary of \$ 85,900 should be …
7. ### Statistics

The distribution of weekly salaries at a large company is reverse J-shaped with a mean of \$1000 and a standard deviation of \$370. What is the probability that the sampling error made in estimating the mean weekly salary for all employees …
8. ### statics

Q: The mean annual salary for a sample of electrical engineers is \$83,500, with a standard deviation The mean annual salary for a sample of electrical engineers is \$83,500, with a standard deviation of \$1500. The data set has a bell-shaped …
9. ### Math

the mean hourly wage of employees at his company using the data in the table. In a report he stated, “The typical salary at the company is about \$23.00 per hour.” How is this misleading?
10. ### visual basic programming

Write a program that accepts salaries of 25 employees into an array into an array and display the following i. Sum of all salaries ii. All salaries below 500 iii. All salaries above 3200 iv. Average salary v. Message if the salary …

More Similar Questions