
158 PUZZLE 39 INSURANCE LOSSES
PUZZLE
39 INSURANCE LOSSES
This puzzle came in my e-mail from Mike Gora. I changed the original
problem a bit, but the idea still holds. You are given a table with the
results of an insurance salesperson’s appraisal of the possible losses a
customer might suffer. To make the code easier, let’s alphabetically name
the dangers a through o. If a danger is not present for this customer,
then we show that with a
NULL. If a danger is present, then we give it a
numeric rating. For example, a fireworks factory on a mountaintop has
no danger of a flood, but the “explosion” factor is very high. Typically,
only five or six ...