Chapter 12 Software Development
Chapter 12 Software Development
SOFTWARE DEVELOPMENT
Logic errors are errors in the logic of a program, meaning the program does not
do what it is supposed to do. These errors are usually found when the program
is being tested. For example, the program in Figure 12.11 will run, but the
results will not be as expected
5<2
123=0
Program maintenance
Program maintenance is not like maintaining a piece of equipment by replacing
worn out parts. Programs do not wear out, but they might not work correctly in
unforeseen circumstances. Logic or run-time errors that require correction may
occur from time to time, or users may want to use the program in a different way.
Program maintenance can usually be divided into three categories:
» Corrective maintenance is used to correct any errors that appear during
use, for example trapping a run-time error that had been missed during
testing.
» Perfective maintenance is used to improve the performance of a program
during its use, for example improving the speed of response.
» Adaptive maintenance is used to alter a program so it can perform any new
tasks required by the customer, for example working with voice commands as
well as keyboard entry.