Simulating a Main Program Calling Multiple Subprograms

Simulating a Main Program Calling Multiple Subprograms,How to operate, is there a textbook