ENCMP100 Final: Functions

41 views4 pages

Document Summary

A group of statements can be invoked (by a call) at any place in the program (function) Start with a statement of a problem and a list of inputs and outputs. Describe an outline of a problem and divide it into sub problems. Each sub task is implemented and tested separately. Codes with the sub tasks are merged and tested together. When executed, it"s the same as if the statements were typed into the command window. Variables already in the workspace can be used, after the script is executed, the variable remains in the workspace. Scripts have no inputs or outputs, and they do not return results. They communicate with other scripts through variables available in the workspace. The results produced by scripts are not output arguments. Every function has its own workspace, by default this is not shown in the workspace.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents