The authors have defined a family of software metrics which simultaneously measure those aspects of software complexity which are measured by the software science metrics and the cyclomatic number. The authors' family of weighted metrics is built on the software science metrics by adding weights to certain operators and operands. The size of the weights is determined by a theorem which relates nesting levels and the cyclomatic number. Thus, by construction the weighted metrics combine the software science metrics and the cyclomatic number. By applying the weighted metrics, the software science metrics, and the cyclomatic number to sample programs, it is shown that the weighted metrics measure the same aspects as the software science metrics and as the cyclomatic number.