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

Derivative problem, we know that derivative of x 2 =2x. now we can write x...

we know that derivative of x 2 =2x. now we can write x 2 as x+x+x....(x times) then if we take defferentiation we get 1+1+1+.....(x times) now adding we get x . then which is wro

Estimate root of given equations, The positive value of k for which x 2 +K...

The positive value of k for which x 2 +Kx +64 = 0 & x 2 - 8x + k = 0 will have real roots . Ans: x 2 + K x + 64 = 0 ⇒  b 2 -4ac > 0 K 2 - 256 > 0 K

Independent & Dependent functions, I am learning this at school today and I...

I am learning this at school today and I started getting confused which one is which, can you help me?

Subtraction - vector arithmetic, Subtraction - Vector arithmetic Compu...

Subtraction - Vector arithmetic Computationally, subtraction is very similar.  Given the vectors a → = (a 1 , a 2 , a 3 ) and b → = (b 1 , b 2 , b 3 ) the difference of the t

Decision-making under conditions of uncertainty, Decision-Making Under Cond...

Decision-Making Under Conditions of Uncertainty With decision making under uncertainty, the decision maker is aware of different possible states of nature, but has insufficient

Equal groupings -categories of multiplication, Equal groupings - when we...

Equal groupings - when we want to find how many objects there are in several equal-sized sets. (e.g., if there are 3 baskets, each with 4 bananas, 4 oranges and 4 apples, respec

Seqence and seies, If the M-th term of an Ap is n andn-th term M.find the p...

If the M-th term of an Ap is n andn-th term M.find the p-th term

Calculate the linear equation, Calculate the linear equation: Example...

Calculate the linear equation: Example: Solve the equation 4x + 3 = 19 by transposing. Solution: Step 1. Transpose the 3 from the left-hand to the right-hand si

Formula to calculate the surface area of basketball, Keith wants to know th...

Keith wants to know the surface area of a basketball. Which formula will he use? The surface area of a sphere is four times π times the radius squared.

Probability, The probability that a leap year will have 53 sunday is ? and ...

The probability that a leap year will have 53 sunday is ? and how please explain it ? (a)1/7    (b) 2/7    (c) 5/7    (d)6/7 Sol) A leap year has 366 days, therefore 52 weeks i.e

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