ENG 6 Lecture Notes - Lecture 15: Subroutine, Matlab, Structured Programming
Document Summary
Preliminary report due friday: set milestones, turn in 1 for whole group, each person also needs an individual report. Need to make youtube video, tutorial and overview of design and operation of project. Modular programming: break large problems down into smaller ones. Each smaller problem can be coded and tested individually. Divide and conquer : core of modularization is subroutine. What are the arguments and return values. Structured programming: invented as a means of good modularization. Limitations of structured programming: when you build a system, you are always evolving it, adding functions. Can t always anticipate these changes: the more successful a system is, the more tasks it is asked to handle, System gets tweaked to handle these tasks/modifications. Relationship between structures and objects: structure data type has natural fit for databases-numbers, strings, etc, object-oriented goes a step beyond structures. A collection of different variables (like a structure) but with the functions associated with those variables: basketball team example.