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

.., the circumference of a circle C of radius r is given by C=2pR.taking p ...

the circumference of a circle C of radius r is given by C=2pR.taking p to be 22/7 a)find the circumference when the radius is 28 cm b)find the radius when the circumference is 484

Ratios, the ratio of boys to girls in the sixth grade is 2:3 if there are ...

the ratio of boys to girls in the sixth grade is 2:3 if there are 24 boys, how many are girls?

Mean is 8.32 find the median, In a frequency distribution mode is 7.88, mea...

In a frequency distribution mode is 7.88, mean is 8.32 find the median.  (Ans: 8.17) Ans:  Mode = 3 median - 2 mean 7.88 = 3 median - 2 x 8.32 7.88 +16.64 = 3 median

Find the distance of the bird from the girl, A boy standing on a horizontal...

A boy standing on a horizontal plane finds a bird flying at a distance of 100m from him at an elevation of 300. A girl standing on the roof of 20 meter high building finds the angl

By the last gymnastics competition estimate keri total score, In her last g...

In her last gymnastics competition Keri scored a 5.6 on the floor exercise, 5.85 on the vault, and 5.90 on the balance beam. What was Keri's total score? Keri's three scores re

Vector, with t =[a b c] construct a matrix A = 1 1 1 ...

with t =[a b c] construct a matrix A = 1 1 1 a b c a^2 b^2 c^2 a^3 b^3 c^3 using vector operations

Explain linear equations, Explain Linear Equations ? Set of ordered pai...

Explain Linear Equations ? Set of ordered pairs of numbers A set is an undefined term and we describe it as a "well defined" collection. We use the symbol "{ }" to denote "a se

Rounding, what is the nearest ten thousand of 92,892?

what is the nearest ten thousand of 92,892?

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