7 - Chapter 7 2 .They :C,Java,and Python.,748knowJava...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Chapter 7 2. There are   1189   students majoring in computer science at a particular university. They  are surveyed about their knowledge of three programming languages: C++, Java, and  Python. The survey results reflect that   856   students know C++,   748   know Java,  and   692   know Python. Additionally,   639   students know both C++ and Java,   519   know  both C++ and Python, and   632   know both Java and Python. There are   488   students  who report knowing all three languages. How many students reported that they did not  know any of the three programming languages? Answer: CONCEPT MAP: WE have a bit of wrong data. With the number that know C++ & Java added to Java & Python added to the number that know all 3 you exceed the number allowed in Java. Solution: Draw 3 overlapping circles: Where all 3 overlap put 488 C++ & Java was = 639 so 639 - 488 = 151 the number left in the C++& Java overlap without Python Java & Python was = 632 so 632 - 488 = 144 the number left in the Java & Python overlap without C++ So as of this point the total in the Java circle is 488 + 144 + 151 = 783, but only 748 know Java 4. How many positive integers less than or equal to 100 are divisible by none of 2, , 3, and 5 Picture 6. The State of Georgia is distributing $173 million in funding to Fulton, Gwinnett, DeKalb, Cobb, and Clayton counties (in millions of dollars). In how many ways can this distribution be made, assuming that each county receives at least $1 million, Clayton County receives at most $10 million, and Cobb County receives at most $30 million? What if we add the restriction that Fulton County is to receive at least $5 million (instead of at least $1 million)?
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern