When is a program fit for purpose
if it meets the requirements specification set out during the analysis phase
what does efficient code do
uses less resoures (processor, RAM) and execute more quickly
Code can be made more efficent by:
using repeat loops wherever possible
using if statements that will exit when the selection conditon has been met
using complex conditions instead of simple conditions
using arrays instead of multiple variables
when is a program robust
if it can handle a range of different inputs without crashing
A program can be made more readale by using the following techniques
internal commentary
meaningful variable names
indentation
white space