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

Example of linear equations, Example of Linear Equations: Solve the eq...

Example of Linear Equations: Solve the equation 2x + 9 = 3(x + 4). Solution: Step 1. Using Axiom 2, subtract 3x and 9 from both sides of the equation. 2x + 9 = 3(

Example of quadratic polynomial, Factor following.                    x ...

Factor following.                    x 2 - 20 x + 100 Solution In this case we've got three terms & it's a quadratic polynomial.  Notice down as well that the constant

Calculate the area of remaining piece of cardboard, A piece of cardboard in...

A piece of cardboard in the shape of a trapezium ABCD & AB || DE, ∠ BCD = 900, quarter circle BFEC is removed. Given AB = BC = 3.5 cm, DE = 2 cm. Calculate the area of remaining p

Integration, why we study integration..?? uses

why we study integration..?? uses

Scale Drawing, Model of 180 meter tall building using a scale of 1.5 centim...

Model of 180 meter tall building using a scale of 1.5 centimeters = 3.5 meters. How tall will the model be?

Translate the formula into prefix form, Translate the following formula int...

Translate the following formula into a prefix form expression in Scheme: 5+4*(6-7/5)/3(14-5)(3+1)

Divide 6.8 × 105 by 2.0 × 102 write your answer scientific, Divide 6.8 × 10...

Divide 6.8 × 10 5 by 2.0 × 10 2 . Write your answer in scientific notation? To divide numbers written in scienti?c notation and divide the ?rst numbers (6.8 ÷ 2.0 = 3.4); the

Geometry problems, if a circles diameter is 42 mm its radius is ___________...

if a circles diameter is 42 mm its radius is _________________ because ________________________.

I am bad at math, i dont know how to do probobility iam so bad at it

i dont know how to do probobility iam so bad at it

the demand forecast, The King Company is producing two types of products: ...

The King Company is producing two types of products: A and B. Both products are produced on the similar machining operation. The machines operate on two 8-hour shifts, 5 days per w

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