CS100J, Spring 2001 Thurs 5/3 Lecture 28 ------------------------------------------------------------------------------- Announcements: + P6 due NOW + Makeup tonight in Upson B17 7:30-9:30 (did you sign up?) + Final exam 5/10 + Final review session: see web + still hold Sunday session? + consulting hours change: Sunday, Monday, Tuesday, 2:00-5:00pm each day ------------------------------------------------------------------------------- Topics: + MATLAB wrapup + $main$ and $args$: NO MORE MAGIC LINES! ------------------------------------------------------------------------------- Summary from Lecture 28: + functions in MATLAB ------------------------------------------------------------------------------- $args$: + command line arguments strings input to program > java ------------------------------------------------------------------------------- Course Summary: + Programming is automated problem solving - problem - algorithm (written human language: words, sentences) - code (computer language: tokens, statements) - solution + Process - figure out human approach - break things down - think writing + Writing - brainstorm - outline - code - refine + Suggestions - sooner to computer, longer it takes - use commenting to avoid starting - use writing process - outline on computer - convert outline to comments - convert comments to code - presto! you have program + Testing - OOP to write and test small "chunks" - use known, smaller test values/results + Overall issues - modeling: attributes -> variables behaviors -> functions/methods things -> classes (vars+meths) - redundancy: avoid! conditions for choices loops for automated repetition functions for repeated code classes to group vars and methods packages/toolboxes to collect classes/functions drivers to control function/script/class interaction - code reuse write general code create own collections +-----------------------------------------------------------------------------+ CS211: What to do next: + beyond CS100: inheritance, I/O, interfaces, GUIs, recursion, efficiency (O(n) stuff), data structures + review P6 -- try to incorporate linked list, learn/improve I/O, write GUI +-----------------------------------------------------------------------------+ Mystery event ??? +-----------------------------------------------------------------------------+