[chbot] Draw algorithm

Marshland Engineering marshland at marshland.co.nz
Mon May 16 21:37:04 BST 2011


Hi all

I'm a bit stumped with this one. I can't seem to work out the algorithm I need.

I need to draw a picture of a bit of computer code.  

The verbal description is 

1 Drill a hole
2 Repeat step1  5 times, each time adding 5 mm going the left 
3 Repeat 1 and 2   2 times, each time add 5 mm going up.
        Now you should have 18 holes. 
4 Repeat 1 to 3  2 times, each time adding 100 mm to the left 
5 Repeat  1 to 4  1 times, each time adding 200 mm to the top. 

If I have my sums correct, that is 6 sets of 18 holes. 

Any suggestions ?

Thanking you
Wallace Weideman
Marshland Engineering
704 Marshland Road
Christchurch
New Zealand

Ph 03 3237449 Fax 03 3235449
http://www.marshland.co.nz/



  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ourshack.com/pipermail/chchrobotics/attachments/20110517/4c8d43e2/attachment.htm 


More information about the Chchrobotics mailing list