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

Show inverse trigonometric functions, Q. Show Inverse Trigonometric Functio...

Q. Show Inverse Trigonometric Functions? Ans. Many functions, including trig functions, are invertible. The inverse of trig functions are called ‘inverse trig functions'.

Calculate expected average time , A car was machine washes every car in 5 m...

A car was machine washes every car in 5 minutes accurately. It has been calculated that customers will arrive as per to a Poisson distribution at an average of 8 per hour. Calculat

Subset [tabular method], 1.A=the set of whole numbers less tan 4 ? 2.B=the ...

1.A=the set of whole numbers less tan 4 ? 2.B=the set of prime numbers less than 19 ? 3.C=the set of first three days of week?

Drug administration, A drug is administrated once every four hours. Let D(n...

A drug is administrated once every four hours. Let D(n) be the amount of the drug in the blood system at the nth interval. The body eliminates a certain fraction p of the drug duri

Fractions, what is 1/3 + 2/9 equal

what is 1/3 + 2/9 equal

How many square centimeters are in one square meter, How many square centim...

How many square centimeters are in one square meter? There are 100 cm in a meter. A square meter is 100 cm through 100 cm. The area of this is 10,000 sq cm (100 × 100 = 10,000)

Show that 3cos-4cos3 = 0, If sin? =  1/2 , show that 3cos?-4cos 3 ? = 0. ...

If sin? =  1/2 , show that 3cos?-4cos 3 ? = 0. Ans:    Sin ? = ½ ⇒ ? = 30 o Substituting in place of ? =30 o . We get 0.

Pair of straight lines, how to solve the problems? methods to solve the que...

how to solve the problems? methods to solve the question of joint lines

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