At a technology conference attended by software engineers, engineers write code in Python, write code in Java, and write code in neither Python nor Java. How many of the software engineers write code in both Python and Java?
- A10
- B15
- 25Answer
- D30
- E35
Answer
The number of software engineers who write code in both Python and Java is 25.
Out of engineers, write neither language, which means engineers write Python, Java, or both. Using the inclusion-exclusion principle, , substituting the values gives . Solving for the overlap gives . Thus, 25 engineers write code in both languages.
Step-by-Step Solution
Key Concept
Principle of Inclusion-Exclusion for Two Sets
Estimated Time:1m 0s