Purchase Solution

# computing the mean

Not what you're looking for?

I need to compute an arithmetic mean(average), median, and mode for up to 50 test scores. The data are contained in a text file.

To determine the median, I must first sort the array. The median is the score in the middle of the range. This can be determined by selecting the score at last/2 if last is odd. The mode is the score that occurs the most often. After building the frequency array, use it to determine which score occurred most often. (Two scores can occur the same number of times) I am working on a Unix operating system.

##### Solution Summary

Ideas for computing the mean are listed.

##### Solution Preview

You mentioned computing the mean; I assume you're able to do that without much difficulty since you didn't mention it in the second paragraph.
<br>
<br>In order to compute the median, you mentioned having to sort. Since you didn't mention a particular method, I will describe a simple and effective sort that should do what you need.
<br>
<br>Insertion Sort is one of the simplest sorting methods, and is very intuitive. Unfortunately, it is inefficient for large lists, but for smaller lists (like the ones you will be working with), it should do the job. If you need to sort a list of numbers, one way to do it is to start by finding the smallest number in the list. ...

##### Basic Networking Questions

This quiz consists of some basic networking questions.

##### Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

##### C++ Operators

This quiz tests a student's knowledge about C++ operators.

##### Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

##### Javscript Basics

Quiz on basics of javascript programming language.