Purchase Solution

C programming

Not what you're looking for?

Ask Custom Question

C programming: 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. The program should start with a function to read the data file and fill the array. There may be fewer than 50 scores. This will require that the read function retrun the index for the last element in the array. To determine the median, I must first sort the array. The mdian 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. Every time I compile it, it tells me that line number 7 is an illegal variable. What am I doing wrong?

The last instructor told me to not use void read file(int a[], &a); but it doesn't matter. All of the function definitions say that they are illegal variables. So what is wrong?

Purchase this Solution

Solution Summary

C programming is included.

Solution Preview

<br>I tested your program and found your problem:
<br>In line 7: ...

Purchase this Solution

Free BrainMass Quizzes
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.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

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.

C# variables and classes

This quiz contains questions about C# classes and variables.