As far as I can tell, the main idea in modular programming is:
program pieces that work well;
complex behaviour results from piece_a and piece_b working together
Though, I am not sure if it means:
write multiple programs;
compile each necessary program into executables;
string together with pipes and shared files
or
write multiple functions;
string together in the mainline of ONE program