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

Marketing research, In pharmaceutical product research doctors visit the pl...

In pharmaceutical product research doctors visit the place to learn what

Markov chain, The Video Club Martin rents movies at "regular price" andat ...

The Video Club Martin rents movies at "regular price" andat "half price". Usually if the films are regularly priced one day, they will be at regular price the next day with probab

Power series and functions - sequences and series, Power Series and Functio...

Power Series and Functions We opened the previous section by saying that we were going to start thinking about applications of series and after that promptly spent the section

Properties of dot product - vector, Properties of Dot Product u → • (v...

Properties of Dot Product u → • (v → + w → ) = u → • v → + u → • w →          (cv → ) • w → = v → •(cw → ) = c (v → •w → ) v → • w → = w → • v →

Real numbers on every line, Make a file called "testtan.dat" which has 2 li...

Make a file called "testtan.dat" which has 2 lines, with 3 real numbers on every line (some negative, some positive, in the range from-1 to 3).  The file can be formed from the edi

Geometry, Can two lines contain a given point

Can two lines contain a given point

Irregular shapes and solids, find the area of the irregular shape 2cm 4cm 4...

find the area of the irregular shape 2cm 4cm 4cm 2cm 5cm 5cm

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