Explain why modular elements are important for procedural programming

Authors Avatar by ellouise1997hotmailcom (student)

Explain why modular elements are important for procedural programming

I am working as a junior for an electronic games maker. My manager has asked me to write a short guide to the basics of procedural programming and to demonstrate some of the techniques. I will explain why modular elements are important for procedural programming.

Modular programming is a software design technique that highlights separating the functionality of a program into independent, interchangeable modules, that each contain everything necessary to execute only one aspect of the desired functions.

There are different elements of procedural programming. It’s a programming design style in which a program is split up into small chunks that complete each part of the task. Example:

Procedural programs give the computer a series of instructions for example for a calculator program. Then carry out the task and calculations according to what the user specifies. Modular Design breaks down complex procedures into simple steps which can be turned into computer code much more easily. You can fit modules together very well so the interfaces are very important. For example, what data is passed into modules (parameters) and what data is passed out (return values).

Join now!

There are many advantages to modular programming. Firstly, modular programming is good because you can work on each module independently which means it’s easier as you are working on a small part.

In addition, having modular elements in procedural programming is important because it enables you to call a piece of code a number of times. So when you are making a calculation and you are using addition or subtraction in the same sum you are calling on the same piece of code. So if there were not any modular elements you would have to code the same number ...

This is a preview of the whole essay