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

Bottleneck for each product, A company makes 2 products, Product A and Prod...

A company makes 2 products, Product A and Product B. The product characteristics are shown in the following table. Product A B

Statistics, do we calculate midpoints from classes or from class boundaries...

do we calculate midpoints from classes or from class boundaries

Find the perimeter of triangle, The length of the sides of a triangle are 2...

The length of the sides of a triangle are 2x + y/2 , 5 x/3 + y + 1/2  and 2/3 x  + 2y + 5/2. If the triangle is equilateral. Find its perimeter. A ns: 2x + y/2 = 4x + y

Conscious consumer, I am comparing building a house and buying a house. whi...

I am comparing building a house and buying a house. which one of the option you would choose.

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

Co-prime positive integers, A group of 5 people are going to meet weekly at...

A group of 5 people are going to meet weekly at the library for 4 weeks. Every week, two people are selected at random to speak. Every person may speak in multiple weeks, but no pa

Find the sum of a+b and a-b, Find the sum of a+b, a-b, a-3b, ...... to 22 t...

Find the sum of a+b, a-b, a-3b, ...... to 22 terms. Ans:    a + b, a - b, a - 3b, up to 22 terms d= a - b - a - b = 2b S22 =22/2 [2(a+b)+21(-2b)] 11[2a + 2b - 42b] =

Limit, limit x APProaches infinity (1+1/x)x=e

limit x APProaches infinity (1+1/x)x=e

What is order of operations simplifying expressions, What is Order of Opera...

What is Order of Operations Simplifying Expressions? Kevin gives Don directions to his house: "Go left 3 blocks and then go right 2 blocks." Don wasn't paying close attention.

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