just follow the steps 1

Make sure when creating this program you are writing your own Bayes’ Theorem code. You should not be using libraries or online code that does it for you.

Ask the user:

What percent of people have the disease and test positive for it?

What percent of people do not have the disease and test negative for it?

What is the ratio of people who have this disease?

Now calculate the Bayesian Probability

1. False Positive

2. False Negative

3. True Positive (What is the probability that a randomly chosen person who tests positive for the disease actually has the disease?)

4. True Negative (What is the probability that a randomly chosen person who tests negative for the disease does not in fact have the disease?)