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

Trigonometry, sin^2alpha *sec^2beta +tan^2 beta *cos^2alpha=sin^2alpha+tan^...

sin^2alpha *sec^2beta +tan^2 beta *cos^2alpha=sin^2alpha+tan^2 beta

Elliptic paraboloid - three dimensional spaces, Elliptic Paraboloid Th...

Elliptic Paraboloid The equation which is given here is the equation of an elliptic paraboloid. x 2 /a 2 + y 2 /b 2 = z/c Like with cylinders this has a cross section

Differentiate functions f ( x ) = 15x100 - 3x12 + 5x - 46, Differentiate f...

Differentiate following functions. (a) f ( x ) = 15x 100 - 3x 12 + 5x - 46 (b) h ( x ) = x π   - x √2  Solution (a)    f ( x ) = 15x 100 - 3x 12 + 5x - 46 I

Sequencing, jobs a b c d e f 1 15 8 6 14 6 26 ...

jobs a b c d e f 1 15 8 6 14 6 26 2 17 7 9 10 15 22 3 21 7 12 9 11 19 4 18 6 11 12 14 17

High dimensions, List the five most important things you learned about high...

List the five most important things you learned about high dimensions.

Determine the differential y = t 3 - 4t 2 + 7t, Determine the differentia...

Determine the differential for following.                                      y = t 3 - 4t 2 + 7t Solution Before working any of these we have to first discuss just

What is chain based index numbers?, What is Chain Based Index Numbers? ...

What is Chain Based Index Numbers? A chain based index is one whereas the index is calculated every year by using the previous year as the base year. This kind of index measur

5% sales tax on a basket what was the price of the basket, The 5% sales tax...

The 5% sales tax on a basket was $0.70. What was the price of the basket? Use a proportion to solve the problem; part/whole = %/100. The whole is the price of the basket (wh

Piecewise, x=±4, if -2 = y =0 x=±2, if -2 = y = 0

x=±4, if -2 = y =0 x=±2, if -2 = y = 0

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