Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Pseudocode for table databy 1nickt (Canon) |
on Mar 17, 2020 at 20:58 UTC ( [id://11114400]=note: print w/replies, xml ) | Need Help?? |
Hi, i am not very good at pseudocode Oh, dear. pseduocode == clear thinking. You're gonna need that. Try starting this way: on a piece of paper, using an analogue writing device, set down the steps you would take to solve the problem using math. Your problem definition has the skeleton answer already. (note use of BASIC line numbering to allow for inserted steps, lol) Now fill in the sub-steps. To calculate the mean for a row, what do you have to do first? Maybe reading the row is a prerequisite to doing the calculation? (Possibly of interest: How to teach programming with a peanut butter and jelly sandwich) Hope this helps!
The way forward always starts with a minimal test.
In Section
Seekers of Perl Wisdom
|
|