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

Nun, how do you identify area ??

how do you identify area ??

Find probability simulation, A reliability system consists of 15 independen...

A reliability system consists of 15 independent components. The probability that a component works is 0.9 for each. The system works if at least 11 of the components work. Fi

Factoring out the greatest common factor, Factoring out the greatest common...

Factoring out the greatest common factor of following polynomials.                    8x 4 - 4 x 3 + 10 x 2  Solution Primary we will notice that we can factor out a

find the ratio of their 11th terms, The  ratio of the sum of first n term...

The  ratio of the sum of first n terms of two AP's  is 7n+1:4n+27.  Find the ratio of their 11th  terms . Ans:    Let a 1 , a 2 ... and d 1 , d 2 be the I terms are Cd's of t

Advantages and disadvantages of decision trees, Advantages of decision tree...

Advantages of decision trees 1. This clearly brings out implicit calculations and assumptions for all to see question and revise 2. This is simple to understand Disadvan

Permutation, explain the basics of permutation

explain the basics of permutation

What are natural numbers and whole numbers, What are Natural Numbers and Wh...

What are Natural Numbers and Whole Numbers? Natural numbers are the numbers that you "naturally" use for counting: 1, 2, 3, 4, ... The set of whole numbers is the set of

Distinct eigenvalues-sketching the phase portrait, Sketch the phase portrai...

Sketch the phase portrait for the given system. Solution : From the last illustration we know that the eigenvectors and eigenvalues for this system are, This tu

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