Give an example on each of these cohesion types Coincidental
Give an example on each of these cohesion types:
Coincidental Cohesion (worst)
Logical Cohesion
Temporal Cohesion
Procedural Cohesion
Communicational Cohesion
Sequential Cohesion
Functional Cohesion (best)
Solution
Coincidental Cohesion (worst):
    It is when parts of a module are grouped with just group relationship between them.
    Example: Utilities class
 Logical Cohesion:
    It is when parts of a module are grouped based on their same functionality logically
    Example: grouping all mouse and keyboard input handling routines
 Temporal Cohesion:
    It is when parts of a module are grouped by their process execution
    Example: function which is called after catching an exception which closes open files, creates an error log, and notifies the user
 Procedural Cohesion:
    Procedural cohesion is when parts of a module are grouped because they always follow a certain sequence of execution
    Example: a function which checks file permissions and then opens the file
 Communicational Cohesion:
    Communicational cohesion is when parts of a module are grouped because they operate on the same data
    Example:a module which operates on the same record of information
 Sequential Cohesion:
    Sequential cohesion is when parts of a module are grouped because the output from one part is the input to another part like an assembly line
    Example: a function which reads data from a file and processes the data
 Functional Cohesion (best):
    Functional cohesion is when parts of a module are grouped because they all contribute to a single well-defined task of the module
    Example:Lexical analysis of an XML string

