[Year 12 SofDev] An algorithm puzzler for your kids (and you?)

Mark Kelly kel at mckinnonsc.vic.edu.au
Thu Mar 8 10:43:16 EST 2007


A neat second method developed by one of my kids follows at the bottom...

It's better than mine...  sometimes I hate kids!


Mark Kelly wrote:
> Whilst battling to get a database to calculate averaged VELS domain 
> scores from dimension scores, I faced an interesting problem you might 
> want to set your kids for tackling algorithms.  (A handy way of filling 
> in a messy 5 excess minutes at the end of a period?)
> 
> Domain scores are rounded up to the nearest 0.25, so 4.01, 4.1 and 4.24 
> become 4.25.  And 4.76 and 4.99 become 5.0.
> 
> I spent quite some time scribbling and testing with Excel to get it 
> right.  The solution appears under my sig if you are interested.
> 
> The satisfaction I felt when I solved it reminded me of why I got into 
> programming in the first place :-)
> 
> .
> .
> .
> .
> .
> .
> .
>  thinking music
>  .
> .
> .
> .
> .
> .
> .
>  thinking music
> .
> .
> .
> .
> .
> .
> .
>  thinking music
> .
> .
> .
> .
> .
> .
> .
>  thinking music
> .
> .
> .
> .
> .
> .
> .
>  thinking music
> 
> 

=(-INT(-n*4)/4)




More information about the sofdev mailing list