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

Tower of hanoi problem, a) Write  a summary  on  Tower  of  Hanoi  Probl...

a) Write  a summary  on  Tower  of  Hanoi  Problem.  How  can  it  be solved using  recursion ?                  b) Amit goes to a grocery shop and purchases grocery for Rs. 23.

Strategy for series - sequences and series, Strategy for Series Now t...

Strategy for Series Now that we have got all of our tests out of the way it's time to think regarding to the organizing all of them into a general set of strategy to help us

Geometry, how do we rotate an object 90 counterclockwise?

how do we rotate an object 90 counterclockwise?

Intermediate value theorem, Intermediate Value Theorem Suppose that f(x...

Intermediate Value Theorem Suppose that f(x) is continuous on [a, b] and allow M be any number among f(a) and f(b).   There then exists a number c such that, 1. a 2. f (

LCM, What is the LCM of 4, 6, 18

What is the LCM of 4, 6, 18

Cylindrical coordinates - three dimensional space, Cylindrical Coordinates ...

Cylindrical Coordinates - Three Dimensional Space Since with two dimensional space the standard (x, y, z) coordinate system is known as the Cartesian coordinate system.  In the

Direction fields in newtons law, One of the simplest physical situations to...

One of the simplest physical situations to imagine of is a falling object. Thus let's consider a falling object along with mass m and derive a differential equation as, when resolv

#title.square footage, The area of a rectangular yard is 480 square feet. T...

The area of a rectangular yard is 480 square feet. The yard is 24 feet wide. How many feet do I need to fence all four sides?

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