answersLogoWhite

0


Best Answer

Ideally, modules will have low coupling and high cohesion. Coupling describes the strength of the connection between modules in a program. Loose (or low) coupling occurs when modules do not depend on other modules. One way to control this is by avoiding the use of global variables and reducing the number of variables that are passed between the modules. Another is to limit the depth of module calls (where a module calls another module, that then calls another module, and so on). Cohesion is a measure of how well a module accomplishes the module's purpose. High cohesion implies that all the module's internal statements serve to perform the module's (single) task. In order for modules to work together, there must be some connection between them. The nature of the connection is important because it determines the extent to which the modules are coupled. How are they connected? The best way to connect them is to pass the value of a local variable in one module to a second module through its parameter list. (A local variable is a variable that is defined within a module (not a parameter) is local to that module. The values of local variables are not available outside of the module in which they are declared unless they are passed. Local variables are reset to their default values once control leaves the module in which they are declared.) Another way to share information is through the use of global variables. (A variable that is defined outside of a module and that does not need to be passed to a module to be accessed by it is a global variable. Global variables retain their value once control leaves the module in which they are referenced. ) Because the value of a global variable can be changed by any module without passing, it increases the coupling between modules.

User Avatar

Wiki User

โˆ™ 14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How are coupling and cohesion related to modular design?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Which coupling is desirable trait for good system design?

Low coupling


What are the specifications of a modular design?

A modular design is a design approach where a product or system is divided into smaller, self-contained modules that can be independently created, modified, or replaced. These modules have well-defined interfaces that allow for easy integration and interoperability. This design allows for flexibility, scalability, and easier maintenance and troubleshooting.


Why maximizing cohesion and minimizing coupling?

I am not an expert but I believe I can address the coupling question. In design, one generally adopts a divide and conquer strategy whereby the problem is solved through a set of cooperating elements that interact with one another. One sign of a good design is that the interactions required between these elements are as few as possible. Why do we want this? Consider elements A and B that interact with one another. If we want to replace A with a new version, the amount of rework to A and to B to ensure that they still interact properly is reduced if the "interface" or "coupling" between A and B is as simple as possible.


Comparison between fluid coupling and torque converter?

They are of similar design, but a fluid coupling simply transmits torque (with some frictional loss), while a torque converter amplifies torque, similar to a reduction gear.


What is modular ratio in rcc?

In reinforced concrete construction, the modular ratio refers to the modulus of elasticity of concrete to that of steel. It is used in structural design calculations to determine distribution of stresses between concrete and steel in beams and columns.

Related questions

Why there should be low coupling and high cohesion in software design?

There should be low dependence and high interaction between the modules. The dependence should be low so that the module can work in absence of another module. So, there should be low coupling ad high cohesion in software design.


Explain the importance of coupling and cohension both of these concepts wrt to software design?

Given two lines of code, A and B, they are coupled when B must change behavior only because A changed. They are cohesive when a change to A allows B to change so that both add new value.


Which coupling is desirable trait for good system design?

Low coupling


What is the architectural design of a modular building?

Virtually any architectural design can be made modular. Colonial, Victorian, Contemporary, Georgian, Tudor and almost any other style imaginable can be produced in a modular fashion.


What are the specifications of a modular design?

A modular design is a design approach where a product or system is divided into smaller, self-contained modules that can be independently created, modified, or replaced. These modules have well-defined interfaces that allow for easy integration and interoperability. This design allows for flexibility, scalability, and easier maintenance and troubleshooting.


kitchen design?

Get Customized Modular kitchen based on your needs and preference, choose any from 8+ Modular kitchen ideas.


Why maximizing cohesion and minimizing coupling?

I am not an expert but I believe I can address the coupling question. In design, one generally adopts a divide and conquer strategy whereby the problem is solved through a set of cooperating elements that interact with one another. One sign of a good design is that the interactions required between these elements are as few as possible. Why do we want this? Consider elements A and B that interact with one another. If we want to replace A with a new version, the amount of rework to A and to B to ensure that they still interact properly is reduced if the "interface" or "coupling" between A and B is as simple as possible.


Is language a modular process?

Given the definition of a 'modular process' - Units of standardized size, design, construction, etc. that can be arranged or fitted together in a variety of ways - it is safe to assume Language is NOT a modular process.


What is the modular fashion?

Modular fashion is fashion that is based on engineering concepts, breaking down the design into multiple components. Modular fashion involves a lot of layering of different fashion styles and concepts. Modular designs start with a basic first layer, and "flair" is added on to that.


Definition of modular?

Modular refers to a interior design approach that consists of the subdivision of a system in several parts. All parts of the design are created and modified separately, they can be combined or separated with the intention of giving them a totally different functionality or to be interchangeable.


What are the best practices in web services design?

The best practices in web design are to expose system functionality, assist modular application and to understand the service and design. The goal to make a robust design and useful API.


What are modular kitchens?

In simple, a modular kitchen is a contemporary or modern way to design your kitchen in a flexible manner. It gives you the opportunity to choose a range of cabinets for different purposes and functions which are available to you in what we refer to as โ€œmodulesโ€.