ITCS 1212L Chapter Notes -Multiplication Table

83 views4 pages
25 Jan 2016
School

Document Summary

Post-lab 7: (9 points) you were told that when you are using the for-loop, you should determine the initial value of the loop control variable, the condition and the update depending on the logic of your program. What will happen if: you forget to initialize your loop control variable. Syntax error, code will not compile: you forget to include your condition. Infinitely loops, since the variable continues to increase/decrease: you forget to include the update rule. Infinitely loops, since the variable does not change the condition will always be true: (12 points) use de" morgan"s law to convert each of these expressions to a form without parenthesis: (look up de" morgan"s. !a || !b (a && b && c) Determine the ones that are pre-test loops as well as post-test loops. Do-while loop: (5 points) how many times will the following loop run? char x; do cout << enter your input.

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