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

Mount everest is 29, Mount Everest is 29,028 ft high. Mount Kilimanjaro is ...

Mount Everest is 29,028 ft high. Mount Kilimanjaro is 19,340 ft high. How much taller is Mount Everest? Subtract Mt. Kilimanjaro's height from Mt. Everest's height; 29,028 - 19

Expressing the interest rate as a decimal fraction, Total Contribution per ...

Total Contribution per Year for next 10yeras =$1000+$800 =$1800 So Total Future fund Vaule  =$1800*(1+1.073+power(1.073,2)+ power(1.073,2)+ power(1.073,3)+ power(1.073,4)+ power

Limit, limit x APProaches infinity (1+1/x)x=e

limit x APProaches infinity (1+1/x)x=e

What are the characteristics of a queuing system, What are the characterist...

What are the characteristics of a queuing system?  (i) The input pattern  (ii) The queue discipline  (iii) The service mechanism

Examples on log rules, Examples on Log rules: Example:      Calculate...

Examples on Log rules: Example:      Calculate (1/3)log 10   2. Solution: log b n√A = log b A 1/n = (1/n)log b A (1/3)log 10 2 = log 10 3 √2 = log 10 1.

Define natural numbers, Q. Define natural numbers Ans. The natural...

Q. Define natural numbers Ans. The natural numbers (also called the counting numbers) are the numbers that you "naturally" use for counting: 1,2,3,4,... The set of n

Determine how much more time it will take to reach the base, A man on a top...

A man on a top of a tower observes a truck at an angle of depression α where tanα = 1/√5 and sees that it is moving  towards the base of the tower. Ten minutes later, the angle of

Function notation, Now we need to move onto something called function notat...

Now we need to move onto something called function notation.  Function notation will be utilized heavily throughout most of remaining section and so it is important to understand i

Compute the double integral - triangle with vertices, 1) let R be the trian...

1) let R be the triangle with vertices (0,0), (pi, pi) and (pi, -pi). using the change of variables formula u = x-y and v = x+y , compute the double integral (cos(x-y)sin(x+y) dA a

Probability, There are 20 defective bulbs in a box of 100 bulbs.if 10bulbs ...

There are 20 defective bulbs in a box of 100 bulbs.if 10bulbs are choosen at random then what is the probability of there are just 3defective bulbs

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