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

What is the net area to be painted, An elevated cylindrical shaped water to...

An elevated cylindrical shaped water tower is in require of paint. If the radius of the tower is 10 ft and the tower is 40 ft tall, what is the net area to be painted? (π = 3.14)

Net Present Value, A business has the opportunity to expand by purchasing ...

A business has the opportunity to expand by purchasing a machine at a cost of £80,000. The machine has an estimated life of 5 years and is projected to generate a cashflow of £20,0

Integral test- harmonic series, Integral Test- Harmonic Series In ha...

Integral Test- Harmonic Series In harmonic series discussion we said that the harmonic series was a divergent series.  It is now time to demonstrate that statement.  This pr

What is angles, What is Angles? An angle is made up of two rays with a ...

What is Angles? An angle is made up of two rays with a common endpoint, which is called the vertex. The sides of the angle are rays. An angle is denoted by "θ". When two li

Learning to count in maths, Here we learn: 1) Discussed what counting me...

Here we learn: 1) Discussed what counting means, and stressed that it is not the ability to recite number names. 2) Talked about the need for a child to understand several pr

Some important issue of graph, Some important issue of graph Before mov...

Some important issue of graph Before moving on to the next example, there are some important things to note. Firstly, in almost all problems a graph is pretty much needed.

Logarithmic functions, If x = b y where both b > 0, x > 0, then we d...

If x = b y where both b > 0, x > 0, then we define y = log b x, which is read as "y is the log to the base b of x". This means that, log b x or y is the number to

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