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

Construct a venn diagram, In a survey of 85 people this is found that 31 wa...

In a survey of 85 people this is found that 31 want to drink milk 43 like coffee and 39 wish tea.  As well 13 want both milk and tea, 15 like milk & coffee, 20 like tea and coffee

Solving a quadratic equation, In polynomials you have seen expressi...

In polynomials you have seen expressions of the form x 2 + 3x - 4. Also we know that when an expression is equated to zero or some other expression, we cal

Find the area of the shaded region of square, In the adjoining figure, ABCD...

In the adjoining figure, ABCD is a square of side 6cm.  Find the area of the shaded region. Ans:    From P draw PQ ⊥ AB AQ = QB = 3cm (Ans: 34.428 sq cm) Join PB

The service was wonderful how much is a 20% tip, Melisa and Jennifer threw ...

Melisa and Jennifer threw a fiftieth birthday party for their father at a local restaurant. While the bill came, Melisa added a 15% tip of $42. Jennifer said in which the service w

Share and dividend, i want to get market value of 10 popular shares of all ...

i want to get market value of 10 popular shares of all working days in a week

Determine randomly generated bit string, Assume E is the event that a rando...

Assume E is the event that a randomly generated bit string of length 4 starts with a 1 and F is the event that this bit string consists of an even number of 1's. Are E and F indepe

Methods for doing integral, There are really three various methods for doin...

There are really three various methods for doing such integral. Method 1: This method uses a trig formula as,  ∫sin(x) cos(x) dx = ½ ∫sin(2x) dx = -(1/4) cos(2x) + c

Word problems, The sum of two numbers is 19, their difference is 5. find th...

The sum of two numbers is 19, their difference is 5. find the numbers

Example of complex roots, Solve the subsequent IVP. y'' - 4y' + 9y = 0, ...

Solve the subsequent IVP. y'' - 4y' + 9y = 0, y(0) = 0, y'(0) = -8 Solution The characteristic equation for such differential equation is. As:  r 2 - 4r + 9 = 0

Index number, reflection about index number in a creative way

reflection about index number in a creative way

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