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 sides of hypotenuse , The hypotenuse of a right triangle is 20m. ...

The hypotenuse of a right triangle is 20m. If the difference between the length of the other sides is 4m. Find the sides. Ans: APQ x 2 + y 2 = 202 x 2  + y 2 = 400

Find the shortest paths in the digraph, 1. a) Find the shortest paths from ...

1. a) Find the shortest paths from r to all other nodes in the digraph G=(V,E) shown below using the Bellman-Ford algorithm (as taught in class).  Please show your work, and draw t

Level curves or contour curves - three dimensional space, Level Curves or C...

Level Curves or Contour Curves Another topic that we should look at is that of level curves or also known as contour curves. The level curves of the function z = f (x, y) are t

Plot your data on a scatter plot, Devise data that link a certain relations...

Devise data that link a certain relationship OF YOUR CHOOSING between two variables. Write a rationale stating why you chose this particular data and what you are planning to STAT

Linear programming, #question.As office manager of her firm, Marcellyne has...

#question.As office manager of her firm, Marcellyne has been directed to buy new filing cabinets. She knows that cabinet A costs $10, requires 6 square feet of floor space, and hol

Examples of logarithms, Examples of logarithms: log 2   8 = 3         ...

Examples of logarithms: log 2   8 = 3                                            since    8 = 2 3 log 10   0.01 = -2                                    since    0.01 = 10

Write down a game each for teach maths to children, Write down a game each ...

Write down a game each to teach children i) multiplication, ii) what a circle is, iii) estimation skills. Also say what you expect the child to know before you try to t

Relate Fractions and Whole Numbers, Jon ran around a track that was one eig...

Jon ran around a track that was one eighth of a mile long.He ran around the track twenty four times.How many miles did Jon run in all

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