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

Relation between hieght, volume=(1/3)(pi)(radius of base)2(height) curved ...

volume=(1/3)(pi)(radius of base)2(height) curved surface area=(pi)(r)(l), r is radius of base and l is length of straight line connecting apex of cone with point on edge of base

Bussiness, How do these websites help the company strengthen its relationsh...

How do these websites help the company strengthen its relationships with its stakeholders? List the website(s) that you previewed and give examples to support your answers. Who are

How many pounds should nicole put in every basket, Nicole is forming 20 gif...

Nicole is forming 20 gift baskets. She has 15 pounds of chocolates to distribute equally between the baskets. If each basket gets the similar amount of chocolates, how many pounds

Describe the laws of sines, Q. Describe the Laws of Sines? Ans. Up...

Q. Describe the Laws of Sines? Ans. Up to now we have dealt exclusively with right triangles.  The Law of Sines and the Law of Cosines are used to solve  oblique triangles

5th grade, 6 and 3/8 minus 1 and 3/4

6 and 3/8 minus 1 and 3/4

1, use 3/8 of a thin of paint, what fraction of the paint is left in thin (...

use 3/8 of a thin of paint, what fraction of the paint is left in thin (show work

Critical points, Critical Point Definition : We say that x = c is a critic...

Critical Point Definition : We say that x = c is a critical point of function f(x) if f (c) exists & if either of the given are true. f ′ (c ) = 0        OR             f ′ (c

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