An Example

Continuing with the example discussed before, a company has a database to keep employees' daily attendance records. A record in this attendance database has the following information: employee-id, month-date-year, time-in, time-out. The company decides to give an annual bonus check to the employee according to the following formula: 10% salary bonus for no absence, 5% bonus for less than 5 days of absence, and 2% bonus for more than five days of absence. We have designed the data flow diagram for this application and then coverted the data flow diagram into an information structure. Now we analyze the cohesion of each module and the coupling between the modules.

The information structure and the cohesion of each module is shown in the next slide.