Determine how many valid fortran identifiers, Mathematics

Assignment Help:

A valid identifier in the programming language FORTAN contains a string of one to six alphanumeric characters (the 36 characters A, B,...., Z, 0, 1,...9) starting with a letter. Determine how many valid FORTRAN identifiers are there?

Ans: There are 26 letters and 10 digits a total of 36 characters. It is restricted that an identifier can be of 1 to 6 characters long only, and first character must be a letter. Thus, Total number of identifiers of length 1 = 26

Total number of identifier of length 2 = 26*36

Total number of identifier of length 3 = 26*362

Total number of identifier of length 4 = 26*363

Total number of identifier of length 5 = 26*364

Total number of identifier of length 6 = 26*365

Thus number of valid identifiers = 26*[1 + 36 + 362 + 363 + 364 + 365] = 1617038306.


Related Discussions:- Determine how many valid fortran identifiers

Callie grandmother pledged $0.50 for each mile callie walked, Callie's gran...

Callie's grandmother pledged $0.50 for each mile Callie walked in her walk-a-thon. Callie walked 9 miles. How much does her grandmother owe? Multiply the number of miles (9) th

What is a set, A set can define as a precise group of distinct objects. Wel...

A set can define as a precise group of distinct objects. Well-defined group means that there be a principle with the help of which it is probable to tell whether a given object rel

Mechanics, find the composition of the simple harmonic motion of the same p...

find the composition of the simple harmonic motion of the same period in the perpendicular directions

Complex, find all the 8th roots of (19+7i)

find all the 8th roots of (19+7i)

Fractions, which fractions is equivalent to 5/ 6 a.20/24 b.9/10 c.8/18 d....

which fractions is equivalent to 5/ 6 a.20/24 b.9/10 c.8/18 d.10/15

How many miles did she average per day, Katie ran 11.1 miles over the last ...

Katie ran 11.1 miles over the last three days. How many miles did she average per day? To ?nd out the average number of miles, you should divide the total number of miles throu

Arithmetic progressions, ARITHMETIC PROGRESSIONS: One  of the  endlessly a...

ARITHMETIC PROGRESSIONS: One  of the  endlessly alluring  aspects  of mathematics  is  that its thorniest  paradoxes have  a  way  of blooming  into  beautiful  theories Examp

L''hospital''s rule, L'Hospital's Rule Assume that we have one of the g...

L'Hospital's Rule Assume that we have one of the given cases, where a is any real number, infinity or negative infinity.  In these cases we have, Therefore, L'H

Solutions to systems, Now that we've found some of the fundamentals out of ...

Now that we've found some of the fundamentals out of the way for systems of differential equations it's time to start thinking about how to solve a system of differential equations

Determine the critical points, Assume that the amount of money in a bank ac...

Assume that the amount of money in a bank account after t years is specified by, Find out the minimum & maximum amount of money in the account throughout the first 10 years

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd