||Number of destructors.
||B = E**(2/3) / 3000, where E is Programming Effort.
||All assignments, function calls (alone on a line), calls, returns, IF, DO, FOR, CHOOSE, EXIT, CONTINUE, and GOTO statements.
||Number of fields.
||Lines of Code divided by K, where K depends on the language: Cobol=77, Natural=52, PL/I=67. Estimate of the number of end-user
business functions implemented by the program.
||Number of inherited methods.
||I = L * V, where L is Program Level and V is Program Volume. Complexity of a given algorithm independent of the language used
to express the algorithm.
|Lines of Code
||Number of lines of code, plus the number of lines of code in included files and any files they include. Comments and blank
lines are not counted.
|Logical Operators in Conditions
||Number of binary logical operators used in conditions.
||Number of methods.
||Number of operand occurrences (N2). Operands are variables and literals used in operators. Compare Unique Operands.
||Number of operator occurrences (N1). Operators are executable statements and unary and binary operations. Compare Unique Operators.
||N = N1 + N2, where N1 is Operators and N2 is Operands.
||L = 1 / D, where D is Difficulty.
||V = N * log2(n), where N is Program Length and n is Vocabulary. Minimum number of bits required to code the program.
||E = V / L, where V is Program Volume and L is Program Level. Estimated mental effort required to develop the program.
||T = E / 18, where E is the Programming Effort and 18 is Stroud’s Number. Estimated amount of time required to implement the
algorithm, in seconds.
||Number of public fields.
||Number of public methods.
||Number of static fields.
||Number of static methods.
||Number of distinct operands (n2). Operands are variables and literals used in operators. Uniqueness of literals is determined
by their notation. Compare Operands.
|Unique Operands in Conditions
||Number of distinct operands used in conditions.
||Number of distinct operators (n1). Operators are executable statements and unary and binary operations. Compare Operators.
||n = n1 + n2, where n1 is the number of Unique Operators and n2 is the number of Unique Operands.