You are on page 1of 3

FNU

CIN 713
TUTORIAL WEEK 9

Name: Nivikesh Ram


ID: 2019001488
1. Explain cohesion and coupling.
Coupling refers to the interdependencies between modules, while cohesion describes
how related the functions within a single module are.

2. Explain the concept of inheritance.


Inheritance allows programmers to create classes that are built upon existing classes, to
specify a new implementation while maintaining the same behaviors (realizing an
interface), to reuse code and to independently extend original software via public classes
and interfaces. The relationships of objects or classes through inheritance give rise to
a directed graph.

3. Explain Cohesion.
cohesion refers to the degree to which the elements inside a module belong together. In
one sense, it is a measure of the strength of relationship between the methods and data of
a class and some unifying purpose or concept served by that class.

4. A company consists of departments. Departments are located in one or more offices. One
office acts as a headquarter. Each department has a manager who is recruited from the set
of employees. Your task is to model the system for the company.
1. Task: Draw a class diagram which consists of all the classes in your system their
attributes and operations, relationships between the classes, multiplicity
specifications, and other model elements that you find appropriate

5. Explain design heuristics?


A heuristic evaluation is a usability inspection method for computer software that helps
to identify usability problems in the user interface (UI) design. There are 10 heuristics,
visibility of system status, match between system and the real world, user control and
freedom, consistency and standards error prevention, recognition rather than recall,
flexibility and efficiency of use, aesthetic and minimalist design, help users recognize,
diagnose and recover from errors, help and documentation.
6. Consider a building comprising a number of floors in which an elevator system is
working. The elevators move among different floors in the building. There are two types
of buttons in the system: buttons inside the elevator and a button outside at each floor. A
button may be turned on by pushing it or turned off, when the door of the elevator on the
corresponding floor is opened. The door of the elevator is closed before it moves from
one floor to the other.

1. Identify classes, their attributes, and operations in the above system.

2. Draw the class diagram for this system

You might also like