Asked by David
Most versions of Pascal allow variable names to consist of eight letters or digits with the requirement that the first character must be a letter. How many eight-character variable names are possible?
I know that there are 2^7 ways to arrange letters and numbers in the remaining seven spots, what else is needed?
I know that there are 2^7 ways to arrange letters and numbers in the remaining seven spots, what else is needed?
Answers
Answered by
Anonymous
multiply by the number of letters in the alphabet :)
Answered by
David
Would I also multiply by the number of digits in order to cover numbers, as well?
Answered by
Anonymous
there are 26 letters and 10 digits including zero
You can repeat I assume
like
A1111111
or
B2222222
or
AAAAAAAA
so I would say each of the last seven could be any of the 36
so 26 * 36 * 36 * 36 * 36 * 36 * 36 * 36
You can repeat I assume
like
A1111111
or
B2222222
or
AAAAAAAA
so I would say each of the last seven could be any of the 36
so 26 * 36 * 36 * 36 * 36 * 36 * 36 * 36
Answered by
David
Alright. That makes sense. Thank you!
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.