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

Where is the bus in relation to the hotel, A bus picks up a group of touris...

A bus picks up a group of tourists at a hotel. The sightseeing bus travels 2 blocks north, 2 blocks east, 1 block south, 2 blocks east, and 1 block south. Where is the bus in relat

In how many years is the population expected to be 42, The population of a ...

The population of a particular city is increasing at a rate proportional to its size. It follows the function P(t) = 1 + ke 0.1t where k is a constant and t is the time in years.

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

Data editing, how to remove wild points in a data set...

how to remove wild points in a data set...

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

In the terms of x, The length of Kara's rectangular patio can be expressed ...

The length of Kara's rectangular patio can be expressed as 2x - 1 and the width can be expressed as x + 6. In the terms of x, what is the area of her patio? Since the area of a

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

Definite integral, from 0->1: Int sqrt(1-x^2) Solution) I=∫sqrt(1-x 2 ...

from 0->1: Int sqrt(1-x^2) Solution) I=∫sqrt(1-x 2 )dx = sqrt(1-x 2 )∫dx - ∫{(-2x)/2sqrt(1-x 2 )}∫dx ---->(INTEGRATION BY PARTS)        = x√(1-x 2 ) - ∫-x 2 /√(1-x 2 ) Let

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