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

Simple derivatives, Simple derivatives Example   Differentiate followin...

Simple derivatives Example   Differentiate following.  (5x 3   - 7 x + 1) 5 ,[ f ( x )] 5 ,[ y ( x )] 5 Solution: Here , with the first function we're being asked to

Derive a boolean first-order query, Consider a database whose universe is a...

Consider a database whose universe is a finite set of vertices V and whose unique relation .E is binary and encodes the edges of an undirected (resp., directed) graph G: (V, E). Ea

Some interpretations of the derivative, Some interpretations of the derivat...

Some interpretations of the derivative Example    Is f ( x ) = 2 x 3 + 300 +4 increasing, decreasing or not changing at x = -2 ? Solution:  We already know that the rate

Plot your data on a scatter plot, Devise data that link a certain relations...

Devise data that link a certain relationship OF YOUR CHOOSING between two variables. Write a rationale stating why you chose this particular data and what you are planning to STAT

Houses having the floor , Suppose you are in the market for a new home and ...

Suppose you are in the market for a new home and are interested in a new housing community under construction in a another city. a) The sales representative informs you that the

Definition of higher order derivatives, Higher Order Derivatives : Le...

Higher Order Derivatives : Let's begin this section with the given function.                            f ( x ) = 5x 3 - 3x 2 + 10 x - 5 By this point we have to be a

AREA, How do you find the distributive property any faster?

How do you find the distributive property any faster?

What is the marginal product of labor function, Your engineering department...

Your engineering department estimated the following production function. Q = 15L 2 - 0.5L 3 a. What is the marginal product of labor function, MP L ? b. What is the aver

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