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

Implement immutable data type rational for rational number, Implement an im...

Implement an immutable data type Rational for rational numbers that supports addition, subtraction, multiplication and division. public class Rational Ration

Evaluating functions, Next we have to talk about evaluating functions.  Eva...

Next we have to talk about evaluating functions.  Evaluating a function is in fact nothing more than asking what its value is for particular values of x. Another way of looking at

What is stem-and-leaf plots, Q. What is Stem-and-Leaf Plots? Ans. ...

Q. What is Stem-and-Leaf Plots? Ans. A stem-and-leaf plot is a table that provides a quick way to arrange a set of data and view its shape, or distribution. Each data val

Example of problems related to applying operations, I had just come back fr...

I had just come back from a very interesting talk arranged by a Mathematics Centre, it was aimed at parents of primary school-going children. They had talked about, and demonstrate

Closure : Activity 5.4, A classmate mixes 2 drops of red food coloring for ...

A classmate mixes 2 drops of red food coloring for every 4 drops of blue food coloring. Create a ratio table with 5 entries to represent this situation. Write the entries of the ra

What was the total cost of the copies, Mary made 34 copies at the local off...

Mary made 34 copies at the local office supply store. The copies cost $0.06 each. What was the total cost of the copies? Multiply 34 by $0.06 to ?nd out the total cost; 34 × $0

Liner regression, Liner Regression The calculations for our sample siz...

Liner Regression The calculations for our sample size n = 10 are described below. The linear regression model is y = a + bx Table: Distance x miles

Find the value of p and q for which the system of equations, Find the value...

Find the value of p and q for which the system of equations represent coincident lines 2x +3y = 7, (p+q+1)x +(p+2q+2)y = 4(p+q)+1 Ans: a 1  = 2, b 1 = 3, c 1 = 7 a 2  =

Differential calculus finding limits, how can i evaluate this lim of x as x...

how can i evaluate this lim of x as x approaches to a

Callie grandmother pledged $0.50 for each mile callie walked, Callie's gran...

Callie's grandmother pledged $0.50 for each mile Callie walked in her walk-a-thon. Callie walked 9 miles. How much does her grandmother owe? Multiply the number of miles (9) th

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