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

I am mathematics expert, i want some assignment for earning i am mathemati...

i want some assignment for earning i am mathematics expert plz provide us mathematics assignment as soon as possible

Write prim's algorithm, Write Prim's Algorithm.   Ans: Prim's algorithm...

Write Prim's Algorithm.   Ans: Prim's algorithm to find out a minimum spanning tree from a weighted graph in step by step form is given below.  Let G = (V, E) be graph and S

Circles, Circles In this section we are going to take a rapid look at ...

Circles In this section we are going to take a rapid look at circles.  Though, prior to we do that we have to give a quick formula that expectantly you'll recall seeing at som

Prove that prims algorithm produces a minimum spanning tree, Prove that Pri...

Prove that Prim's algorithm produces a minimum spanning tree of a connected weighted graph. Ans: Suppose G be a connected, weighted graph. At each iteration of Prim's algorithm

How many ways can dvds be arranged on a shelf, How many ways can 4 DVDs be ...

How many ways can 4 DVDs be arranged on a shelf? Solution: There are 4 ways to choose the first DVD, 3 ways to choose the second, 2 ways to choose the third and 1 way to choo

Trigonometry, explain the formular for finding trigonometry

explain the formular for finding trigonometry

How to find total no. of unordered pairs , How to find total no. of unorder...

How to find total no. of unordered pairs of disjoint subsets of a finite set? Solution) Suppose A and B are two such disjoint subsets of the set S. Then every element can go into

What is metric system explain in brief, What is Metric System explain in br...

What is Metric System explain in brief? There are two main systems of measurement in use today. Most countries in the world use the Metric System. In only three countries-the

Determine the length of the rectangle, The height of a rectangle is 20 cm. ...

The height of a rectangle is 20 cm. The diagonal is 8 cm more than the length. Determine the length of the rectangle. a. 20 b. 23 c. 22 d. 21 d. To determine the len

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