The objectives of modular programming are to reduce program code and standardize program code.
Reducing Program Code
If a section of code is used many times during one pass of the program, that code can be defined as a subroutine (also called a module). When that routine is needed, control is transferred to that part of the program.
Standardizing Program Code
Subroutines help set programming standards that define where functionality is placed in the program. If you use an established block of code and do not change the line numbers, then that subroutine will always be placed in the same location in the program.