answersLogoWhite

0


Best Answer

Event driven programming is just that, the code does not get executed until an event happens. A good example is a visual basic program, when you click on a button, the code for the button gets executed, but in any other case that code is never touched by the program.

Structured programming is different, A DOS programming environment called QBasic is a great example of this. You write a program and it goes through every single line of code before either looping back to the beginning or exiting. when it gets to the end, it checks to see if a variable contains a certain value, if it does it exits, otherwise it loops.

Hope this helps, and my definitions of each are accurate.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

6y ago

Modular program simply means dividing a program into logical units to reduce the maintenance burden and provide greater consistency. There are various ways to achieve this depending on the programming language. In C we typically use headers to group related declarations (interfaces) which can then be included wholesale wherever they are required, with corresponding source files to define the implementation of those interfaces. Each source file is essentially a translation unit that is compiled in complete isolation from all others. In C++ we can also group or divide translation units into namespaces. For example, the entire C++ standard library is defined across hundreds of individual source files, all of which are contained in the std namespace. Namespaces can also be nested to create further division and we can import just those names we actually require, reducing pollution of the global namespace.

Structured programming addresses the problems associated with "spaghetti code" (overuse of goto statements) which can make code difficult to read and thus increases the maintenance burden. Structured programming primarily introduced the concepts of structured loops (such as while and do-while loops), code blocks (scope), subroutines and exception handling. Structured programming eventually gave way to procedural programming which introduced the concept of a unified function call-and-return mechanism. This in turn led to object-oriented programming (OOP) which combines abstraction, data encapsulation, inheritance and polymorphism. In essence, all OOP languages are procedural and all procedural languages are structured, all of which play some part in creating code that is modular, easy to read and thus easier to maintain.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the Difference between modular programming and structured programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is the difference structured programming language and java?

There is no difference between procedural programing language & structure programing language


What is modular programing mention any 2 charecteristic?

Modular programming is a design technique which separates a program into small, self-contained units or modules, each focusing upon a particular aspect of the program. Modular programming typically combines structured programming, object oriented programming and generic programming techniques.


What is the difference between modular programming and structured programming.?

Modular programming:It is the act of designing and writing programs as interactions among functions that each perform a single well defined function,& which have minimal side effect interaction between them.It is heavily procedural.The focus is entirely on writing code(functions). Data is passive.Any code may access the contents of any data structured passed to it. Object Oriented programming:it is a programming paradigm using "objects"-data structures consisting of data fields & methods together with their interactions-to design applications and computer programs.programming techniques may include features such as data abstraction,encapsulation,messaging,modularity,polymorphism and inheritance.


Difference between procedural programming and modular programming?

Procedural programming is a computer programming technique in which the program is divided into modules like function or subroutine or procedure or subprograms, where as ... "Modular Programming" is the act of designing and writing programs as interactions among functions that each perform a single well-defined function, and which have minimal side-effect interaction between them. Put differently, the content of each function is cohesive, and there is low coupling between functions as happens in procedural programming.


What is the difference of modular programming and modular programming?

The strength of modular programming lies in the modular approach. Each module holds logically grouped code (functions, procedures, variables, constant data), typically grouped by functionality. For instance, one module might provide tools to retrieve application-specific data from and store such data in a database, another module might provide visualization primitives, a third might provide an application-specific data structure and related management functions, etc. As each module is developed, it is tested as a single unit. The idea is to perfect this module, and never to touch it again while the remaining modules are being developed and tested in a similar manner, then put together ("integrated") to form the application. While the goal of never touching a module, once initially tested, is rarely met in real life terms, modular programming provides a structured approach to application design and helps in producing quality software. A modular design also helps when working in a team, as the modules' boundaries often are natural dividing lines along which the work can be divided between different members of the team.

Related questions

What is modular structured programming?

when you divide a long program or problem into small small understandable parts that means modular structured programming. In the consequences of c programming modular structured programming called to divide a long program into small small, and easy to understand functions. Garcha UFV, Canada


What is the difference structured programming language and java?

There is no difference between procedural programing language & structure programing language


What are the Structured programming languages?

In Structured Programming also known as Modular Programming Each Method(function) is structured itself. Such logical structure make programming more efficient and easy to understand. it employs Top-Down design model.


What is modular programing mention any 2 charecteristic?

Modular programming is a design technique which separates a program into small, self-contained units or modules, each focusing upon a particular aspect of the program. Modular programming typically combines structured programming, object oriented programming and generic programming techniques.


What is the difference between modular programming and structured programming.?

Modular programming:It is the act of designing and writing programs as interactions among functions that each perform a single well defined function,& which have minimal side effect interaction between them.It is heavily procedural.The focus is entirely on writing code(functions). Data is passive.Any code may access the contents of any data structured passed to it. Object Oriented programming:it is a programming paradigm using "objects"-data structures consisting of data fields & methods together with their interactions-to design applications and computer programs.programming techniques may include features such as data abstraction,encapsulation,messaging,modularity,polymorphism and inheritance.


What is non modular bricks?

Difference between modular and non-modular bricks


How does the C language work as structured?

It is known as structured programming language because it has functions and you can go for a modular approach in solving the problems. However, object oriented concepts are not supported in C.


What is difference between modular or non modular router?

additional ports can be added in modular routers.


Is c plus plus a modular programming?

No, but it does support modular programming through namespaces.


Difference between procedural programming and modular programming?

Procedural programming is a computer programming technique in which the program is divided into modules like function or subroutine or procedure or subprograms, where as ... "Modular Programming" is the act of designing and writing programs as interactions among functions that each perform a single well-defined function, and which have minimal side-effect interaction between them. Put differently, the content of each function is cohesive, and there is low coupling between functions as happens in procedural programming.


Does C support modular programming?

Yes.


Is VB modular programming language?

Yes.