Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. (TCO 4) _____ is often used in the design of a program to describe the progra

ID: 3643810 • Letter: 1

Question

1. (TCO 4) _____ is often used in the design of a program to describe the program processing.
Pseudocode
Algorithm
Program control
Data flow


2. (TCO 4) Which of the following statement encompass the other three?
Decision statement
Repetition statement
Sequence statement
Control statement


3. (TCO 4) Programmers often write the if statement on two lines to visually separate the decision-making condition from its resulting action; however, only one _____ follows the entire statement.
colon
semicolon
curly bracket
parenthesis


4. (TCO 4) Consider the following statement: A department store is giving a discount of 15% for all purchases over $100. Which of the following is the appropriate structure to use to program the statement?
Decision
Loop
Repetition
Sequence


5. (TCO 4) What type of operator can be used to determine whether a specific relationship exists between two values?
Relational
Mathematical
Logical
Boolean


6. (TCO 4) What is the

Explanation / Answer

1. psuedocode 2. control statement 3. semicolon 4. decision 5. relational 6. != 7. nesting 8. You do not have five apples! The end of the program is reached. //Both lines will be printed 9.switch, case, break, default 10. It stops the program at the line of the breakpoint after it has executed it. 11. Unlike if, which evaluates one value, switch statements allow you to branch on any of a number of different values // 2: // Demonstrates switch statement 3: 4: #include 5: 6: int main() 7: { 8: unsigned short int number; 9: cout > number; 11: switch (number) 12: { 13: case 0: cout