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

Find the time it takes to slide down, The time in seconds that it takes for...

The time in seconds that it takes for a sled to slide down a hillside inclined at and angle θ is where d is the length of the slope in metres. Find the time it takes to sli

Geometry, how to make an obtuse scalene triangle FAT with m

how to make an obtuse scalene triangle FAT with m

Find final position of point by rotation -translation matric, Question: ...

Question: A point in 3D is first rotated anticlockwise by 45 degrees about x axis,then translated along y axis by 2 units.Find the final position of the point if its initial po

Find out the total number of pounds of coffee purchased, Megan bought x pou...

Megan bought x pounds of coffee in which cost $3 per pound and 18 pounds of coffee at $2.50 per pound for the company picnic. Find out the total number of pounds of coffee purchase

Complex roots - second order differential equations, We will be looking at ...

We will be looking at solutions to the differential equation, in this section ay′′ + by′ + cy = 0 Wherein roots of the characteristic equation, ar 2 + br + c = 0 Those

Quadratic equation, can anyone explain me the concept of quadratic equation...

can anyone explain me the concept of quadratic equation?

Calculus, What is the slope of the line tangent to f(x)=3-2 ln(2x^2+4) at t...

What is the slope of the line tangent to f(x)=3-2 ln(2x^2+4) at the point (4, f(4))

Find out the roots of the quadratic equation, Find out the roots of the fol...

Find out the roots of the following quadratic equation. 3x 2 + 7x = 0 Solution: Using Equation 6, one root is determined. x = 0 Using Equation 7, substitute the

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