18) It is given that among 18 computers, 12 are in working order and six are defective.
Now we have to find out how many samples of 4 are possible, selected without replacement and without regard to order, wherein all are defective.
Thus, we know that we have to choose only from the defective ones. Thus, we have to choose 4 from the 6 defective.
Thus, the required answer is given by 6C4 = 6! / (4!*2!) = 15
Thus, 15 samples of four are possible selected without replacement and without regard to the order wherein all are defective.
3. Cards a. A standard deck of cards has 52 cards, each with a suit and value. There are four suits and 13 values. A hand of cards in poker is a selection 5 cards without replacement. The order of selection does not matter. How many possible hands of cards are there? (We did this in class.) In a standard poker hand, what is the probability of having at least once Ace in the hand? There are four cards with...
please explain and show work for the parts I missed 1) You decide to play a few games of Texas Hold'em. Each player is dealt 2 cards from a fair deck of 52 cards. a) How many combinations of 2-card hands are there? (Points: 2) 52 C2 = 1326 +2 b) How many different orderings of 2-card hands are there? (Points: 2) 52 P₂ = 2652 +2 will randomly select 5 digits (the values 0. 1. 2..... 9). If the...
1.How many possible orderings of letters ABCDEFG are there? 2.How many strings of length 4 can be made using the letters ABCDEFG? 3.How many subsets of size 4 are there of the letters ABCDEFG. 4.How many possible strings are there of the letters "MATTER"? 5.Consider four books: an engineering book (E), a physics book (P), a history book (H), and an Art book (A). Consider the following problem: Suppose that the library has at least six copies of each of...
May i please get help with this? Thank you for your time. [Poker] Poker is a card played with a standard 52 card playing deck (https://en.wikipedia.org/wiki/Standard_52-card_deck). There are many variants of poker. However, for this problem we will not concern ourselves with any specific version, but rather the types of poker hands possible. Assume five cards out of the standard 52 card deck are dealt to a player. The order that the player receives the cards does not matter. One...
We want to design our die class (to be named aDie) such that we can have statements such as: aDie D; // To instantiate a Die object int rolled = D; // To get the value rolled by D rolled = D + D; // To get the value of the sum of 2 rolls of the die aDie d1, d2; // to instantiate 2 dice rolled = d1 + d2; // To get the value of the sum of...
HELP NEED!! Can some modified the program Below in C++ So that it can do what the Problem below asked it today???? #include <iostream> #include <stdlib.h> #include <string> #include <time.h> /* time */ #include <sstream> // for ostringstream using namespace std; // PlayingCard class class PlayingCard{ int numRank; int numSuit; string rank; string suit; public: PlayingCard(); PlayingCard(int numRank,int numSuit); void setRankString(); void setSuitString(); void setRank(int numRank); void setSuit(int numSuit); string getRank(); string getSuit(); int getRankNum(); int getSuitNum(); string getCard(); };...
Specifications: C++ each class should have a header file all files must create a console application in Visual Studio We want to design our die class (to be named aDie) such that we can have statements such as: aDie D; // To instantiate a Die object int rolled = D; // To get the value rolled by D rolled = D + D; // To get the value of the sum of 2 rolls of the die aDie d1, d2;...
1. We roll two fair 6-sided dice. Compute the probabilities of the following events. (a) The sum is at most 6. (b) The sum is more than 6. (c) The sum is at most 6 and at least one die is a 4. 2. Consider the letters a,b,c. Suppose we draw 2 of the letters at random (allowing for repetition). Assume order matters. That is, ab is not the same as ba: Let A : The 2 letters are distinct....
HELP NEED!! Can some modified the program Below in C++ So that it can do what the Problem below asked it today???? #include <iostream> #include <stdlib.h> #include <string> #include <time.h> /* time */ #include <sstream> // for ostringstream using namespace std; // PlayingCard class class PlayingCard{ int numRank; int numSuit; string rank; string suit; public: PlayingCard(); PlayingCard(int numRank,int numSuit); void setRankString(); void setSuitString(); void setRank(int numRank); void setSuit(int numSuit); string getRank(); string getSuit(); int getRankNum(); int getSuitNum(); string getCard(); };...
TO SU Part 1: Probability were cay 1. A question on a multiple-choice test has 10 questions each with 4 possible answers (a,b,c,d). a. What is the probability that you guess all the answers to the 10 questions correctly (carn 100%)? 2. If you ask three strangers about their birthdays, what is the probability a. All were born on Wednesday? b. What is the probability that all three were born in the same month? c. All were born on different...