Problem definition
It
is important that we know exactly what problem we have to solve. This may
appear to be trivial, but without a precise problem definition, we might
develop a computer program that solves a problem other than the intended
problem.
~~~~Problem
definition of the payroll problem~~~~
'A
factory wants to calculate the daily wages for its employees. The wages
are obtained by mulyiplying the hourly rate of individual employees by
the number of hours worked. However, if the number of hours worked exceeds
7, an allowance equal to 40% of the hourly rate will be added to each overtime
hour.'