CS 1325 Lecture 5:
Document Summary
- up to 2 days before the deadline you can ask questions by email/office hours/appointment. - after that, he can only answer questions during office hours. - hybrid between high level code and every day language and expressions. - graphical representation of steps needed to perform some task. - similat to pseudocode, but there are some rules: -loops: a block of code is repeated, until: counter value is reached and/or, a sentinel/flag changes its value. Steps: init, test the condition, if 2) true execute the for loop body, o. w. end, update, test the contidion, if 5) is true execute the body, o. w. end Semicolons are the only mandatory components of the for loop for(;;){ //infinite loop: since there is no update, the condition is always true if there is no condition, it is considered to be true initialization and update are comma separated list of multiple counters int i,j=100;