Answer on Combinatorics | Number Theory Question for Kathleen
Suppose You have eight televisions. Three are defective. If teo are randomly selected, compute the probability that both televisions work. What is the probability that at least one of the two does not work?
Since three of them are defective, 5 TV should be in good quality, the probability that none of the two television are defective would then be
5/8 * 4/7 = 5/14
and the probability that at least one TV is defective is
Week 5 Assignment 1 Review: Nicely defined dynamic stack. The push and pop functions seem to work great. Good job Week 5 Assignment 2 Review: Program coded to spec and ran fine. Good definition of the InventoryBin class with a full set of accessor functions. To make the class reusable for other applications, you should have also defined a set of mutator functions. Good definition of the 3 utility functions. This was a good exercise of the stack abstract data type – you’re clearly doing Object Oriented Programming now.