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

Allied mathematics, The tenth term in the binomial expansion of (1-1/4)(1-1...

The tenth term in the binomial expansion of (1-1/4)(1-1/5)(1-1/6)...(1-1/n+3) is equal to

Logarithm functions, Logarithm Functions : In this section we'll discuss l...

Logarithm Functions : In this section we'll discuss look at a function which is related to the exponential functions we will learn logarithms in this section. Logarithms are one o

Polynomials, sum of zero of polynomial x2-2x+1is equal to sum of zero of po...

sum of zero of polynomial x2-2x+1is equal to sum of zero of polynomial x3-2x+x then find the product of all the three zero of the second polynomial

Explain multiplying-dividing negative fractions, Explain Multiplying/Dividi...

Explain Multiplying/Dividing Negative Fractions? There are 3 steps to multiplying or dividing fractions. 1. If any negative signs are present, place them next to the numerator

An even number is selected, Let the Sample Space S = {1, 2, 3, 4, 5, 6, 7, ...

Let the Sample Space S = {1, 2, 3, 4, 5, 6, 7, 8}. Suppose each outcome is equally likely. Compute the probability of event E = "an even number is selected".

Explain comparing mixed numbers in maths, Explain Comparing Mixed Numbers i...

Explain Comparing Mixed Numbers in maths? A mixed number is made up of two parts: a whole number and a fraction. For example: 2(3/4) 2(3/4) is read "two and three-fourths

Show that the height of the opposite house, From a window x meters hi...

From a window x meters high above the ground in a street, the angles of elevation and depression of the top and the foot of the other house on the opposite side of the street  are

Compute the total and annual return on the investment, 1. Calculate the ann...

1. Calculate the annual interest that you will receive on the described bond-A $500 Treasury bond with a current yield of 4 .2% that is quoted at 106 points? 2. Compute the tota

Compute the regular expression, 1. Consider the following context free gram...

1. Consider the following context free grammar G with start symbol S (we write E for the empty string, epsilon): S ---> bB | aSS A ---> aB | bAA B ---> E | bA | aS a. D

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