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

base - 10 block math, there are 5 small cubes and it reads the 5 small cub...

there are 5 small cubes and it reads the 5 small cubes is 1/100, then what is the ONE?

Find out that the relation is an equivalent relation or not, Let m be a pos...

Let m be a positive integer with m>1. Find out whether or not the subsequent relation is an equivalent relation. R = {(a,b)|a ≡ b (mod m)} Ans: Relation R is illust

International marketing, what are challenges and solution of international ...

what are challenges and solution of international marketing

Explain the dependent events, Explain the Dependent Events? Events are ...

Explain the Dependent Events? Events are called dependent events when the outcome of one event influences the outcome of the second event. P(A and B) = P(A) P(B following A

Homogeneous differential equation, Assume that Y 1 (t) and Y 2 (t) are two ...

Assume that Y 1 (t) and Y 2 (t) are two solutions to (1) and y 1 (t) and y 2 (t) are a fundamental set of solutions to the associated homogeneous differential equation (2) so, Y

Lines, i dont understand angels and lines

i dont understand angels and lines

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