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

Find the middle term of the arithmetic progressions, Find the middle term o...

Find the middle term of the AP 1, 8, 15....505. A ns:    Middle terms a + (n-1)d = 505 a + (n-1)7 = 505 n - 1 = 504/7 n = 73 ∴ 37th term is middle term a 37

Exponents, how to solve this question:(2x)5*(2x)-4*(2x)-3*(2x)6

how to solve this question:(2x)5*(2x)-4*(2x)-3*(2x)6

Objectives of why learn mathematics, Objectives After studying this uni...

Objectives After studying this unit, you should be able to explain how mathematics is useful in our daily lives; explain the way mathematical concepts grow; iden

Linear programming problem, I have a linear programming problem that we are...

I have a linear programming problem that we are to work out in QM for Windows and I can''t figure out how to lay it out. Are you able to help me if I send you the problem?

Determine the height of building, A 20-foot light post shows a shadow 25 fe...

A 20-foot light post shows a shadow 25 feet long. At the similar time, a building nearby casts a shadow 50 feet long. determine the height of building? a. 40 ft b. 62.5 ft

Find out that vector are linearly dependent, Find out if the following set ...

Find out if the following set of vectors are linearly independent or linearly dependent. If they are linearly dependent get the relationship among them. Solution : Ther

Eqt.., pam bought a new bedroom suit for $2588.she me a down payment of $18...

pam bought a new bedroom suit for $2588.she me a down payment of $188 and paid the remaining amount in 24 equal monthly payments .how much did she pay for each monthly payment.

Solving equations by completing the square method, I need help for Solving ...

I need help for Solving Equations by Completing the Square Method, can anybody help me out for this?

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