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

Linear algebra, solve for k such that the system 4x+ky=6 kx+y=-3

solve for k such that the system 4x+ky=6 kx+y=-3

Find the constant rate of 0.01 , Two people are 50 feet separately.  One of...

Two people are 50 feet separately.  One of them begin walking north at rate so that the angle illustrated in the diagram below is changing at constant rate of 0.01 rad/min. At what

Permuation and combination, how many words can be formed from letters of wo...

how many words can be formed from letters of word daughter such that word contain 2vowles and 3consonant

Find the 14th term in the arithmetic sequence. 60, Find the 14th term in t...

Find the 14th term in the arithmetic sequence. 60, 68, 76, 84, 92

Calculate the radius of the circle, In the figure, ABCD is a square inside ...

In the figure, ABCD is a square inside a circle with centre O. The Centre of the square coincides with O & the diagonal AC is horizontal of AP, DQ are vertical & AP = 45 cm, DQ = 2

Ampltude and period, find the amplitude and period of y=3 sin 2 pi x

find the amplitude and period of y=3 sin 2 pi x

Product moment coefficient (r), Product Moment Coefficient (r) ...

Product Moment Coefficient (r) This gives an indication of the strength of the linear relationship among two variables.                                     N

Randi takes the stairs at work whenever possible instead, Randi takes the s...

Randi takes the stairs at work whenever possible instead of the elevator. She must climb up 51 steps from her office to get to the accounting department. The human resources depa

Integration variable, Integration variable : The next topic which we have ...

Integration variable : The next topic which we have to discuss here is the integration variable utilized in the integral. In fact there isn't actually a lot to discuss here other

How much does kristen have left after the money is taken out, Kristen earns...

Kristen earns $550 each week after taxes. She deposits 10% of her income in a savings account and 7% in a retirement fund. How much does Kristen have left after the money is taken

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