Code in Java please
The probability that a circuit board produced by a particular manufacturer has a defect is 1%. You can assume that errors are independent, so the event that one circuit board has a defect is independent of whether a different circuit board has a defect.
You are going to create a program that calculates and the outputs the probabilities for a different number of outputs. At the end of the numeric output have a statement to help the software user understand what they are seeing.
1. What is the probability that out of 100 circuit boards made exactly 0 have defects?
2. What is the probability that out of 100 circuit boards made exactly 1 have defects?
3. What is the probability that out of 100 circuit boards made exactly 2 have defects?
4. What is the probability that out of 100 circuit boards made at least 3 have defects?
5. Output a summary explaining the findings.
Example: There is a probability of _______ to have no defects in a batch of 100 circuit boards. There is a probability of ______ to have 1 defect in a batch of 100 circuit boards. There is a probability of ______ to have 2 defects in a batch of 100 circuit boards. There is a probability of ________ to have 3 or more defects in a batch of 100 circuit boards.