Running the line (studentaverage.txt)
The unix tool "grep" filters out comments and "awk" does the math. Average scores for HW1, HW2 of the entire class are obtained with
It is more convenient to use Perl or Python or even a computer algebra system like Mathematica do such things. But most of the time, especially in educational setups, spreadsheet are used for trivial things like sorting, taking averages or adding up weighted scores. Often one has to merge different spreadsheets. Here is an example program merge.perl written in Perl which accesses entries in both matrices individually by its indices. While it does the task not very efficiently, it allows a "mathematically trained mind" to manipulate these matrices. Having a powerful programming language at hand is especially useful when more complex row or column manipulations have to be done, for example when entries have to be checked for certain conditions and if there are exceptions. Dealing with exceptions is especially difficult with "out of the shelf" spreadsheet programs. Exceptions are also the main source for errors, when dealing with data. The two postings in a slashdot discussion which hit the heart of the matter. Problems with the spreadsheet concept:
|
Added: April 24, 2005:
|
Added: August 25, 2005:
|
Added: June 4, 2006:
|