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 average number of miles lori ran, Lori ran (5)1/2 miles Monday,...

Lori ran (5)1/2 miles Monday, (6)1/4 miles Tuesday (4)1/2 miles Wednesday and (2)3/4 mile on Thursday what is the average number of miles lori ran ? To find the average, add

Evaluate the measure of the larger angle, Two angles are complementary. The...

Two angles are complementary. The calculate of one angle is four times the measure of the other. Evaluate the measure of the larger angle. a. 36° b. 72° c. 144° d. 18°

Ratios, 450 students. if there are 50 more boys than girls, how many boys a...

450 students. if there are 50 more boys than girls, how many boys and girls are there?

Application of linear function, four times an unknown number is equal to tw...

four times an unknown number is equal to twice the sum of five and that unknown number

Why is vector division undefined, Division basically refers to multiplicati...

Division basically refers to multiplication of reciprocal. For example a/b is same as a*1/b or we can say, is same as a*b -1 , which is "a" multiplied to the inverse of "b". There

How much is invested at 8% if the total amount of interest, Kevin invested ...

Kevin invested $4,000 in an account which earns 6% interest per year and $x in a different account that earns 8% interest per year. How much is invested at 8% if the total amount o

Example of cartesian coordinate graph, Example of Cartesian coordinate Grap...

Example of Cartesian coordinate Graph: Example:   The temperature of water flowing in a high pressure line was measured at regular intervals.  Plot the subsequent recorded da

Detremine the surface area to the nearest inch, If a tabletop has a diamete...

If a tabletop has a diameter of 42 in, Detremine the surface area to the nearest inch? (π = 3.14) a. 1,384 in 2 b. 1,319 in 2 c. 1,385 in 2 d. 5,539 in 2 c. Th

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