上游充通大 ParisTech SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY Motivations Divide huge tasks to blocks:divide programs up into sets of cooperating functions. Define new functions with function calls and parameter passing. Use functions to reduce code duplication and increase program modularity. ·Easy to: -Design→Implement→Test→Maintain→Reuse 3Motivations • Divide huge tasks to blocks: divide programs up into sets of cooperating functions. • Define new functions with function calls and parameter passing. • Use functions to reduce code duplication and increase program modularity. • Easy to: – Design Implement Test Maintain Reuse 3