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
- 25Cevap
- D30
- E35
Cevap
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.
Adım Adım Çözüm
Anahtar Kavram
Principle of Inclusion-Exclusion for Two Sets
Tahmini Süre:1m 0s