30 views9 pages

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;

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