Dec 062017
Solves the 12-coins type puzzles mathmatically (from BYTE).
File COIN_PUZ.ZIP from The Programmer’s Corner in
Category Files from Magazines
Solves the 12-coins type puzzles mathmatically (from BYTE).
File Name File Size Zip Size Zip Type
COIN.BAS 1612 1070 deflated
COIN.TXT 691 418 deflated

Download File COIN_PUZ.ZIP Here

Contents of the COIN.TXT file

Have you ever heard the brain teaser that goes something like this...
You have 12 coins, one of which is counterfit (either
lighter than or heavier than the others). Using a simple
balance scale you have but THREE weighings to determine
which is the counterfit AND whether it is heavier or
lighter! Well, it took me quite a while to solve that.
Recently while browsing through some old BYTE magazines I
came across a math column that dealt with this type of
program. I have included the listing "COIN.BAS" for your
enjoyment. Running it is self-explanatory. I highly
reccommend you read the accompanying article (see listing
for ref) as it is scientifically very interesting!

 December 6, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>