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

Least common multiple (lcm), Before we look at this, let us learn wha...

Before we look at this, let us learn what a multiple is. Take any number say 3. Multiply this number with natural numbers. We obtain 3, 6, 9, 12, 15, 18,.........

Probability: determine the optimal strategy , On a picnic outing, 2 two-pe...

On a picnic outing, 2 two-person teams are playing hide-and-seek. There are four  hiding locations (A, B, C, and D), and the two members of the hiding team can hide separately in a

Applications of percentage, rajan bought an armchair for rs.2200 and sold i...

rajan bought an armchair for rs.2200 and sold it for rs.2420.find his profit per cent.

Elimination technique of linear equations, What is the Elimination techniqu...

What is the Elimination technique of Linear Equations?

Geometry, Awhat is polygonesk question #Minimum 100 words accepted#

Awhat is polygonesk question #Minimum 100 words accepted#

Determine the function notation, Given f (x) = - x 2 + 6 x -11 determine e...

Given f (x) = - x 2 + 6 x -11 determine each of the following. (a)    f ( 2) (b)   f ( -10) (c)    f (t ) Solution (a)    f ( 2) = - ( 2) 2   + 6(2) -11 = -3 (

Interpretation of the second derivative, Interpretation of the second deriv...

Interpretation of the second derivative : Now that we've discover some higher order derivatives we have to probably talk regarding an interpretation of the second derivative. I

Expert , i want to work with you, please guide me

i want to work with you, please guide me

Arithmetic progression (a.p.), A series is said to be in Arithmetic...

A series is said to be in Arithmetic Progression (A.P.) if the consecutive numbers in the series differs by a constant value. This constant value is referre

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