(a)
Number of ways of selecting 3 positions for vowels out of 11 is
C(11,3) = 165
Now these three vowels can be filled in 5*5*5 = 125 ways
And rest 11-3 = 8 letters can be filled by 26-5=21 consonanats in ways.
So possible number of 11 letter sequence is
(b)
Number of 11 letter sequence :
Number of 11 letter sequence with all letters different is :
Number of 11 letter sequence with at least one repeated letter is:
4. (HHM Problem 2.1 #2) Assume that a vowel is one of the five letters A,...
in C++ please. (Vowel or consonant?) Assume letters A/a, E/e, I/i,0/o, and U/u as the vowels Write a program that prompts the user to enter a letter and check whether the letter is a vowel or consonant. Here is a sample run: 4.10 Enter a letter: B B is a consonant -Enter Enter a letter grade: a is a vowel Enter Enter a letter grade: # is an invalid input Enter (Vowel or consonant?) Assume letters A/a, E/e, I/i,0/o, and...
6.042 - 1 Problem1 Answer the following questions with a number or a simple formula involving factorials and binomial coef. ficients. Briefly explain your answers. (a) How many ways are there to order the 26 letters of the alphabet so that no two of the vowels a, e, i, o, u appear consecutively and the last letter in the ordering is not a vowel? Hint: Every vowel appears to the left of a consonant ters of the alphabet so that...
Assume that a word consists of 5 lower-case letters of the alphabet. Assume that repeated letters are NOT allowed to use in the word. How many words end with “t”? (4 points) Assume that a word consists of 5 lower-case letters of the alphabet. If the word needs to contain letter “o”, how many such strings are there? (4 points)
Vowel or Consonant?Write a program for Programming Exercise 4.10 on p.151 in the textbook. Testing: Run the program for two vowels, two consonants, and two invalid characters. Assume letters A/a , E/e , I/i , O/o , U/u as the vowels. Write a program that prompts the user to enter a letter and check whether the letter is a vowel or constant.
A person has to create an identification tag for their team. The identification tag of their team must contain exactly 7 letters. The first letter must be either a J, N, or R. The second letter must be a vowel that is not an E or U. The third letter must be a F, G, H, or M. The fourth letter must be a consonant that is not a B, D, or L. The fifth letter must be a consonant....
Consider a set of letters consisting of 4 different vowels (including e) and 8 different consonants (including b). How many different 5-letter sequences can be formed using 2 vowels and 3 consonants (with no repeated letters) (a) containing b? (b) beginning with b? (c) beginning with e? (d) beginning with e and containing b?
A password consists of 4 letters among 26 lower-case English alphabet letters and 10 digits: 0,1,...,9. (i) How many different passwords that contain at least one digit can be formed? (ii) How many different passwords that contain at least one digit and at least one letter can be formed?
2. You randomly choose a letter from (A, B, C, D, E and a friend randomly chooses a letter from fa, b, c, d, e to create a pair of 2 letters with 1 upper case letter followed by 1 lower case letter. (Note: in the English alphabet, the vowels are A, E, I, O, U.) a) Write out the sample space for this experiment. (For example one outcome in the sample space is: Ac; another is Bb.) For parts...
There are 21 consonants and 5 vowels in English. We wish to make a 4 letter combination as a password for an email account with 3 consonants and 1 vowel (assume all letters are lowercase, and no letter is repeated) How many different passwords can you make?
4. How many sequences of length 6 formed from the 26 letters without repetition are there where the vowels (a,e,i,o,u) may only appear in the first or/and last positions (possibly neither)?