Solution
Q1
Back-up Theory
Number of ways of arranging n distinct things among themselves (i.e.,, permutations)
= n!
= n(n - 1)(n - 2) …… 3.2.1..............................................................................................………………………………….….(1)
Values of n!can be directly obtained using Excel Function: Math & Trig FACT (Number)................................ (1a)
Number of ways of arranging n distinct things among themselves such that p out of n things are always together
= (n – p + 1)! x p! ………..………………………………………………………………….….(2)
Number of ways of arranging n distinct things among themselves such that p out of n things are always together and also (n – p) are always together
= 2!(n – p)! x p! ………..………………………………………………………………….….(3)
Now, to work out the solution,
Here
n = 9, ................................................................................................................................... (4a)
p = 5 (C++) ................................................................................................................................... (4b)
(n - p) = 4 (Java) ................................................................................................................................... (4c)
Part (a)
Vide (4a) and (1), number of arrangements = 9! = 362880 [vide (1a)] Answer 1
Part (b)
The arrangement needs to be: CJCJCJCJC only.
Now, C can occupy 5 odd positions in 5! ways and for each of these arrangements, J can occupy 4 even positions in 4! ways. Thus, total number of arrangements = 5! X 4! = 120 x 24 = 2880 Answer 2
Part (c)
Vide (4a), (4b) and (2), number of arrangements = 5! x 5! = 14400 Answer 3
Part (d)
Vide (4a), (4b), (4c) and (3), number of arrangements = 2! x 5! x 4! = 5760 Answer 4
DONE
I have nine different programming textbooks on my bookshelf, five C++ and four Java. In how many ways can I arrange the...
Five cards are to be chosen from a standard 52-card deck. In how many ways can this be done if… a. All of the cards are clubs? b. There are three clubs and two spades? c. What is the probability you get 4 Aces and 2 Kings?
java programming 3. Back to contract bridge. The shape of the hand (that is, how "balanced" or "unbalanced" it is) is urposes as its raw point count. Write a method often just as important for the hand evaluation p public String bridgeHandShape(String hand) that creates and returns a four-element string that tells how many spades, hearts, diamonds and clubs, in this order, there are in the hand. This result string should contain these four counts in order separated by commas,...
1. There are five chairs in a row. How many different ways can you seat two girls and three boys if both girls must sit next to each other?
you have 2math books, 3history books and 7science books. how many ways are there to arrange the books on a book shelf? how many ways are there to arrange the books on a book shelf if the books from each category must stay together? You have 2 Math books, 3 History books, and 7 Science books. How many ways are there to arrange the books on a book shelf? How many ways are there to arrange the books on a...
How many ways can the letters of the word KITCHEN be arranged? How many ways can the letters of the word KITCHEN be arranged if the letters H, E, and N must remain next to each other in the order HEN? If all arrangements of the letters of the word KITCHEN are equally likely, what is the probability that an arrangement will have the letters H, E, and N next to each other in the order HEN? How many ways...
how many ways are there to arrange four men and five women in a row, such that the men and women must each be in increasing order of their ages
Part B(COMBINATORICS) LEAVE ALL ANSWERA IN TERMS OF C(nr) or factorials Q4(a)6) In how many ways can you arrange the letters in the word INQUISITIVE? in how many of the above arrangements, U immediately follows Q? Q4. (b)Suppose you are a math major who is behind in requirements and you must take 4 math courses and therefore next semester. Your favorite professor, John Smith, is teaching 2 courses next semester you "must" take at least one of them. If there...
You want to distribute 100 gold coins among 20 different people. How many ways can he do this if the gold coins are all... (g) identical but instead are distributed into 20 identical piggy banks such that no piggy bank is empty. (h) different and each person gets exactly five coins. (i) identical and each person gets exactly five coins. (j) different and the Leader gets ten pieces while the other people can get any number of pieces
Principles of Counting: You have a ten-volume set of books. a) How many different ways can the books be arranged? b) How many of these arrangements have Volumes 1, 2, and 3 side by side in any order? c) How many of these arrangements have Volumes 1, 2, and 3 side by side in that order?
of the following counting problems call for counting combinations ow many ways can a five card poker hand be solected from a standard a. deck of 52 cards ? ifteen women are trying out for parts in a production of Snow White. In hovw many ways can three different women be selected to play Snow White, her evi step mother and the Wicked Witch ? b. F c. Twenty people have volunteered to participate in psychology experiments In how many...