This program reads the above Bayes net from file, and then uses it for inference:
When this program runs, its output is:
The probability of tuberculosis is 0.0104
Given an abnormal X-ray,
the probability of tuberculosis is 0.0924109
Given an abnormal X-ray and a visit to Asia,
the probability of tuberculosis is 0.3377156