   Chapter 9.3, Problem 14ES ### Discrete Mathematics With Applicat...

5th Edition
EPP + 1 other
ISBN: 9781337694193

#### Solutions

Chapter
Section ### Discrete Mathematics With Applicat...

5th Edition
EPP + 1 other
ISBN: 9781337694193
Textbook Problem
1 views

# An early compiler recognized variable names according to the following rules: Numeric variable names had to begin with a letter, and then the letter could be followed by another letter or a digit or by nothing at all String variable names had to begin with the symbol S followed by a letter, which could then be followed by another letter or a digit or by nothing at all How many distinct variable names were recognized by this compiler?

To determine

To find how many distict variable names were recognized by this compiler.

Explanation

Given information:

A group of eight people

Concept used:

P(n,r)=n!nr!

Calculation:

An early compiler recognized variable names according to the following rules:

Numeric variable names and String variable names.

Now to find variable names recognized by the compiler we need to find Numeric variable names and String variable names.

First, to find Numeric variable names:

Since Numeric variable names had to begin with a letter, and then letter could be followed by another letter or a digit or by nothing at all.

Thus, Numeric variable names are:

26+2636

Because, at first a letter is chosen among 26 letters and then this letter is followed by another letter or a digit, i.e. letter is chosen among 26 letters or 10 digits (from 0 to 9 ).

Now, to find String variable names:

Since String variable names had to begin with a letter, and then letter could be followed by another letter or a digit or by nothing at all.

Thus, String variable names are:

26+2636

Because, at first a letter is chosen among 26 letters and then this letter is followed by another letter or a digit, i

### Still sussing out bartleby?

Check out a sample textbook solution.

See a sample solution

#### The Solution to Your Study Problems

Bartleby provides explanations to thousands of textbook problems written by our experts, many with advanced degrees!

Get Started 