Ask Question
15 June, 20:52

A common computer programming rule is that names of variables must be between one and eight characters long. The first character can be any of the 26 letters, while successive characters can be any of the 26 letters or any of the 10 digits. For example, allowable variable names include A, BB, and M3477K. How many different variable names are possible? (Ignore the difference between uppercase and lowercase letters.)

+4
Answers (1)
  1. 15 June, 22:42
    0
    This question is dealing with combinations and permutations. We need to ask: does the character depend on the value of the character before? If it does we have permutations and we add number of possible characters. If it does not we have combinations and we multiply number of possible characters. This dependance means: can we choose same character again?

    In our case it does not depend and we have combinations.

    One character name:

    Number of combinations = 26

    Two characters name:

    Number of combinations = 26*36

    Three characters name:

    Number of combinations = 26*36*36

    Four characters name:

    Number of combinations = 26*36*36*36

    Five characters name:

    Number of combinations = 26*36*36*36*36

    Six characters name:

    Number of combinations = 26*36*36*36*36*36

    Seven characters name:

    Number of combinations = 26*36*36*36*36*36*36

    Eight characters name:

    Number of combinations = 26*36*36*36*36*36*36*36

    To find out how many different variable names are possible we need to add these numbers:

    26 + 26*36 + 26*36*36 + 26*36*36*36 + 26*36*36*36*36 + 26*36*36*36*36*36 + 26*36*36*36*36*36*36 + 26*36*36*36*36*36*36*36 =

    = 26 + 936 + 33696 + 1213056 + 43670016 + 1572120576 + 56596340736 + 2037468266496 =

    = 2095684645538
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “A common computer programming rule is that names of variables must be between one and eight characters long. The first character can be any ...” in 📘 Mathematics if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers