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

Calculate the volume and surface area of a sphere, Calculate the volume and...

Calculate the volume and surface area of a sphere: Calculate the volume and surface area of a sphere with r = 4".  Be sure to include units in your answer. Solution: V

Sketch the direction field for the differential equation, Sketch the direct...

Sketch the direction field for the subsequent differential equation. Draw the set of integral curves for this differential equation. Find out how the solutions behave as t → ∞ and

What is the marginal product of labor function, Your engineering department...

Your engineering department estimated the following production function. Q = 15L 2 - 0.5L 3 a. What is the marginal product of labor function, MP L ? b. What is the aver

Find a relationship chart and closeness ranks, 1.A manufacturing facility c...

1.A manufacturing facility consists of five departments, 1, 2, 3, 4 and 5. It produces four components having the manufacturing product routings and production volumes indicated in

first person drawn was named the class president, Consider a class of 55 s...

Consider a class of 55 students. The student names are placed in a hat & 3 names are randomly drawn without replacement. a)     If the first person drawn was named the class presi

Describe square roots, Describe Square Roots? When a number is written ...

Describe Square Roots? When a number is written inside a radical sign (√), the number is called the radicand, and we say that you are "taking the square root of" that number.

Prove that xa+ar=xb+br of circle, In figure, XP and XQ are tangents from X ...

In figure, XP and XQ are tangents from X to the circle with centre O. R is a point on the circle. Prove that XA+AR=XB+BR Ans:    Since the length of tangents from externa

Surface area- applications of integrals, Surface Area- Applications of inte...

Surface Area- Applications of integrals In this part we are going to look again at solids of revolution. We very firstly looked at them back in Calculus I while we found the

Test of homogeneity , Test of homogeneity This is concerned along with...

Test of homogeneity This is concerned along with the proposition that several populations are homogenous along with respect to some characteristic of interest for example; one

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