CS 161 Lecture 7: Loops and Error Handling

32 views3 pages

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.

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
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents