Perl Monk, Perl Meditation | |
PerlMonks |
Re: Pseudocode for table databy BillKSmith (Monsignor) |
on Mar 18, 2020 at 22:36 UTC ( [id://11114446]=note: print w/replies, xml ) | Need Help?? |
I am not sure what you mean by 'pseudocode'. I often start a small project such as this by writing a Perl program that is valid, but lacks important details. Here is a sample.
It needs an implementation of the 'mean' function. It uses a hard coded array of strings rather than input. The output is unformatted. The default arguments of 'split' may not work as intended. Clearly, the highest priority is the function. I am not ashamed to use a module to do the heavy work.
Now you should have a working program. Add input and output details until it meets your requirements. As a final step, you may want to replace the module with your own sum function.
Bill
In Section
Seekers of Perl Wisdom
|
|