We present a framework for software quality that incorporates the economic significance of software failure. We present methodology to assess software exposure and software risk--the magnitude of the potential loss due to software failure, and the expected value of this loss, respectively....