The primary logic in a program, which is input-process-output and repeat. The main loop continually tests for input and calls the appropriate routines to process it. Outputs are updated files sent ...