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

digraph of r, Let R be the relation on S = {1, 3, 6, 9, 27} defined by aRb...

Let R be the relation on S = {1, 3, 6, 9, 27} defined by aRb iff a|b. (a) Write down the matrix of R. (b) Draw the digraph of R. (c) Explain whether R is reflexive, irrere

..compound intrest, tell me about the software of compound intrest?

tell me about the software of compound intrest?

Argument, what is the difference between argument and principle argument

what is the difference between argument and principle argument

Shares and dividends, at what price a 6.25%rs 100 share be quoted when the ...

at what price a 6.25%rs 100 share be quoted when the money is worth 5%

Original price of the mittens was $10 what is the new price, A pair of mitt...

A pair of mittens has been discounted 12.5%. The original price of the mittens was $10. What is the new price? Find 12.5% of $10 and subtract it from $10. Find out 12.5% of $10

Solve 3 + 2 ln ( x /7+3 ) = -4 logarithm, Solve 3 + 2 ln ( x /7+3 ) = -4 . ...

Solve 3 + 2 ln ( x /7+3 ) = -4 . Solution This initial step in this problem is to get the logarithm by itself on one side of the equation  along with a coefficient of 1.

Shares and dividends, suresh invested rs.1080 in shares of face value rs.50...

suresh invested rs.1080 in shares of face value rs.50 at rs.54.After receiving dividend on them at 8% he sold them at 52.In each of the transaction he paid 2 % brokerage.Hpw much d

Pair of straight line, The equation ax2 + 2hxy + by2 =0 represents a pair o...

The equation ax2 + 2hxy + by2 =0 represents a pair of straight lines passing through the origin and its angle is tan q = ±2root under h2-ab/(a+b) and even the eqn ax2+2hxy+by2+2gx+

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