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

Explain histogramsin details, Explain Histogramsin details? Another way...

Explain Histogramsin details? Another way to display frequencies is by using a histogram. The following is an example of a histogram using the data from the previous example:

Young entrepreneur, As a creative and innovative entrepreneur, we are requi...

As a creative and innovative entrepreneur, we are required to invent or improvise a product or service that benefits the society and the economy, so what do you think is it?

Doubles Plus 1 and Doubles Minus 1, Write the doubles fact you used to solv...

Write the doubles fact you used to solve the problem. 7 + 8 = 15

.probability, a box contains 4 white and 6 green balls.Two balls are drawn ...

a box contains 4 white and 6 green balls.Two balls are drawn randomly with replacement.Show the probability on tree dig.

Coordinate geometry, find the value of x for which the distance between the...

find the value of x for which the distance between the points p(4,-5) and q(12,x) is 10 units

Which state sold corsica to france in 1768, By which of those ancient civil...

By which of those ancient civilizations was Machu Pichu built? The Aztecs The Egyptians The Mayas The Incas Which state sold Corsica to France in 1768? - Not answered Genoa Veni

Integration, Awhat is the meaning and application sk question #Minimum 100 ...

Awhat is the meaning and application sk question #Minimum 100 words accepted#

Differential equations, Find the normalized differential equation which has...

Find the normalized differential equation which has {x, xex} as its fundamental set

Smooth curve - three dimensional space, Smooth Curve - Three Dimensional Sp...

Smooth Curve - Three Dimensional Space A smooth curve is a curve for which → r' (t) is continuous and → r' (t) ≠ 0 for any t except probably at the endpoints. A helix is a s

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