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

Solve the form x2 + bx - c, Solve the form x 2 + bx - c ? This tutori...

Solve the form x 2 + bx - c ? This tutorial will help you factor quadratics that look something like this: x 2 + 11x - 12 (No lead coefficient; positive middle coeffic

Linear Programming, A garden shop wishes to prepare a supply of special fer...

A garden shop wishes to prepare a supply of special fertilizer at a minimal cost by mixing two fertilizers, A and B. The mixture is to contain at least 45 units of phosphate at lea

Estimate how much work is completed in stretching, A spring has a natural l...

A spring has a natural length of 20 Centimeter. A 40 N force is needed to stretch and hold the spring to a length of 30 Centimeter. How much work is completed in stretching the spr

How many people are usual to vote for mr salva on survey, The Daily News re...

The Daily News reported that 54% of people surveyed said in which they would vote for Larry Salva for mayor. Based on the survey results, if 23,500 people vote in the election, how

Multiple, what number does not belong 43,47,53,59,65,67

what number does not belong 43,47,53,59,65,67

Mathematical model representing the total parking cost, John has a choice o...

John has a choice of using one of two parking garages when he visits downtown: Option1:  $8 an hour for the first two hours, then $2 and hour for each hour more than 2; or Op

Inductive reasoning.., 2, -8, 32, -128, ?, ?, ?, what are these next 3?

2, -8, 32, -128, ?, ?, ?, what are these next 3?

Geometry, what is the product of the solutions to the equation: x2+4x=-4

what is the product of the solutions to the equation: x2+4x=-4

Patrice has worked a certain how many hours has she worked, Patrice has wor...

Patrice has worked a certain amount of hours so far this week. Tomorrow she will work four more hours to finish out the week along with a total of 10 hours. How many hours has she

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