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

Angels, angel 1 and angel 2 are what angels?

angel 1 and angel 2 are what angels?

Inverse cosine, Inverse Cosine : Now see at inverse cosine.  Following is ...

Inverse Cosine : Now see at inverse cosine.  Following is the definition for the inverse cosine.                         y = cos -1 x       ⇔ cos y = x                   for

First order differential equations, In this section we will consider for so...

In this section we will consider for solving first order differential equations. The most common first order differential equation can be written as: dy/dt = f(y,t) As we wil

What is the probability a 3 will be rolled and a tail tossed, A die is roll...

A die is rolled and a coin is tossed. What is the probability that a 3 will be rolled and a tail tossed? Find the probability of each event separately, and then multiply the an

Test of hypothesis on proportions, Test Of Hypothesis On Proportions It...

Test Of Hypothesis On Proportions It follows a similar method to the one for means except that the standard error utilized in this case: Sp = √(pq/n)  Z score is computed

Carrot juice, 1. His favorite current carrot drink contain 40%. but h eneed...

1. His favorite current carrot drink contain 40%. but h eneeds add to 80 quarts wife brought his perfect drink mix.

Sets, creative assignment about sets

creative assignment about sets

Define histogram, Q. Define histogram? Ans. A histogram is a bar g...

Q. Define histogram? Ans. A histogram is a bar graph that gives the frequency of each value. Here are a few examples to illustrate the usefulness of this method of data r

How many cubic yards of concrete are required, A concrete retaining wall is...

A concrete retaining wall is 120 feet long with ends shaped as given. How many cubic yards of concrete are required to construct the wall? a. 217.8 yd 3 b. 5,880 yd 3

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