\begin{figure}
\begin{ccode}
function Total_defects() \{
  return defects("requirements",Coqualr) + 
         defects("design",      Coquald) + 
         defects("coding",      Coqualc)  
\} 

function defects(what,table) \{
  introduced     = defectsIntroduced1(what,table);
  percentRemoved = defectsRemovedRatio(what);
  return percentRemoved*introduced 
\}

\end{ccode}
\caption{COQUALMO: defects added and removed}\label{fig:addremove}
\end{figure}