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

Types of relation, Relations in a Set: Let consider R be a relation fro...

Relations in a Set: Let consider R be a relation from A to B. If B = A, then R is known as a relation in A. Thus relation in a set A is a subset of A ΧA. Identity Relation:

Differentiate quotient rule functions, Example of quotient rule : Let's no...

Example of quotient rule : Let's now see example on quotient rule.  In this, unlike the product rule examples, some of these functions will require the quotient rule to get the de

Distinct eigenvalues-sketching the phase portrait, Sketch the phase portrai...

Sketch the phase portrait for the given system. Solution : From the last illustration we know that the eigenvectors and eigenvalues for this system are, This tu

Simplify, X^2 – y^2 – 2y - 1

X^2 – y^2 – 2y - 1

Find the sum of all natural no. between 101 and 304, Find the sum of all na...

Find the sum of all natural no. between 101 & 304 which are divisible by 3 or 5. Find their sum. Ans:    No let 101 and 304, which are divisible by 3. 102, 105..........

Explain simple classification and chance and probability, E1) From your exp...

E1) From your experience, and what you have studied so far, by which age would-you expect an average child to be ready to acquire the following concepts? i) Simple classificatio

Which expression has an answer of 18, Which expression has an answer of 18?...

Which expression has an answer of 18? Use the order of operations and try every option. The first option results in 14 since 2 . 5 = 10, then 10 + 4 = 14. This does not work. T

Construct the adjacency matrix and the adjacency lists, Question: Constrcut...

Question: Constrcut the adjacency matrix and the adjacency lists for the graph G below, where the weights associated with edges represent distances between nodes. If no edge is pre

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