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 volume of the liquid , A vessel in shape of a inverted cone is sur...

A vessel in shape of a inverted cone is surmounted by a cylinder has a common radius of 7cm this was filled with liquid till it covered one third the height of the cylinder. If the

Metric and costamary, can you please help me with this topic that im on in ...

can you please help me with this topic that im on in classand I just don''t get it and can u help me with dividing fractions adding mutply subtract add

Probability distributions, Probability Distributions Since the value of...

Probability Distributions Since the value of a random variable cannot be predicted accurately, by convention, probabilities are assigned to all the likely values that the varia

Calculate what number of workers should be hired, You are given the followi...

You are given the following information about the amount your company can produce per day given the number of workers it hires. Numbers of Workers Quanti

Law of Sine and Cosine Word Problems, A poll tilts towards the sun at an 8 ...

A poll tilts towards the sun at an 8 o angle from the vertical at it casta 22-ft shadow. The angle of elevation from the shadow to the top of the pole is 43 o . How tall is th

What kinds classroom activities help children to learn maths, What kinds of...

What kinds of classroom activities can you think of for helping children to make groups of 5 and 10? Once they have enough practice with such activities, children can be helped

Find the third vertex of a triangle, Find the third vertex of a triangle if...

Find the third vertex of a triangle if its two vertices are (-1, 4) and (5, 2) and mid point of one side is (0, 3).

Surds, I wanted to know what are surds.please explain with an example.

I wanted to know what are surds.please explain with an example.

Mean, a data set has a mean of 3, a median of4, and a mode of 5, which numb...

a data set has a mean of 3, a median of4, and a mode of 5, which number must be in the data set 3,4,or5

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