Chapter 6 C++
Across
- 4. It is important to desk-check an algorithm several times using different ________ data.
- 6. type of selction structure that is placed inside of another selection structure
- 9. A program that displays a message based on a letter grade that the user enters would require a(n) ____ selection structure.
- 11. A nested selection structure is contained within the ____ selection structure.
- 12. If the default clause is not the last clause in the switch statement, you will need to include a ____ statement at the end of the clause to stop the computer from processing the instructions in the next case clause.
- 13. Between the switch statement’s opening and closing braces are the individual ____ clauses.
- 14. Multiple-path selection structures are also referred to as ____ selection structures.
- 16. A common source of logic errors in selection structures is using a _____________ operator rather than a nested selection structure.
- 19. The flowchart symbol for the switch form of the selection structure is the ____.
Down
- 1. In a flowchart, the switch diamond contains an expression whose ___________ determines which path is chosen.
- 2. An algorithm can be written in ______________ or it can be depicted by a flowchart.
- 3. A common source of logic errors in selection structures is using an __________________ nested selection structure.
- 5. In C++, you use the ____ statement to code the switch form of the selection structure.
- 7. When using nested selection structures, the secondary decision is always made by the ____ selection structure.
- 8. It is a good programming practice to document the end of the switch statement with the //end switch _________.
- 10. a set of step-by-step instructions that accomplish a task.
- 15. You use the selection structure when you want a program to make a decision or comparison and then select one of two paths, depending on the result of that __________________.
- 17. In a flowchart, the switch symbol has ____ flowline(s) leading into the symbol.
- 18. When you use the ____ logical operator to combine two conditions in a selection structure, both conditions must be true for the compound condition to be true.