CS 161 Lecture 7: Loops and Error Handling
Document Summary
Cs 161 lecture 7 loops and error handling. After manipulating the function do i get the expected output . Test for good, bad, and edge cases. Don"t have to focus on error handling for all of them: cin can only take in one variable, syntax what keywords you use. Unique to each coding language: semantics how you want to do something. Same between different coding languages: problem solving model: Problem statement: from assignment (can copy) Understanding: do not copy and paste own words! Design work: basic and full design. Testing table: good things that prove program works, bad things that will break program. Extra looping details scope: loops (and if statements) assume the first line after them is in their scope. You do not need curly brackets {} if just for one line. You need the {} for multiple lines! Extra looping details nesting: just like with conditionals, we can nest loops.