In a company of 150 employees, 85 employees know Java, 75 employees know Python, and 40…
- User
In a company of 150 employees, 85 employees know Java, 75 employees know Python, and 40 employees know both Java and Python. If an employee is chosen at random, then what is the probability that the employee knows at least one of these two programming languages?
0.8
0.26
0.6
0.12
- Assistant
To determine the probability that a randomly chosen employee knows at least one of the two programming languages (Java or Python), we can use the principle of inclusion-exclusion.
- Number of employees who know Java: 85
- Number of employees who know Python: 75
- Number of employees who know both Java and Python: 40
Using the inclusion-exclusion principle:
[ \text{Number of employees who know at least one language} = \text{Java} + \text{Python} - \text{Both} ]
[ = 85 + 75 - 40 = 120 ]
Now, to find the probability:
[ \text{Probability} = \frac{\text{Number of favorable outcomes}}{\text{Total number of employees}} = \frac{120}{150} = 0.8 ]
Answer: 0.8