Assignment Fog Index The Fog Index is a readability test designed to show how easy or difficult a text is to read. It uses the following formula: Reading Level (Grade) = (Average No. of words in sentences + Percentage of words of three or more syllables) x 0.4 The resulting number is your Gunning Fog Index. The Gunning Fog Index gives the number of years of education that your reader hypothetically needs to understand the paragraph or text. The Gunning Fog Index formula implies that short sentences written in plain English achieve a better score than long sentences written in complicated language. For reference, the New York Times has an average Fog Index of 11-12, Time magazine about 11. Typically, technical documentation has a Fog Index between 10 and 15, and professional prose almost never exceeds 18. Cyclomatic Complexity Cyclomatic complexity (or conditional complexity) is software metric (measurement). It is used to indicate the complexity of a program. It directly measures the number of linearly independent paths through a program's source code. The concept, although not the method, is somewhat similar to that of general text complexity measured by the Flesch-Kincaid Readability Test. Cyclomatic complexity is computed using the control flow graph of the program: the nodes of the graph correspond to indivisible groups of commands of a program, and a directed edge connects two nodes if the second command might be executed immediately after the first command. Cyclomatic complexity may also be applied to individual functions, modules, methods or classes within a program.