Modular Programming
Building a program in modules, or independent routines, is common practice. The module performs a function and then returns control back to the program or instruction that called it. Modular programming has evolved into object-oriented programming, which provides stricter rules for developing self-contained routines.
Learn more about modular programming