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

2. (TCOs 3, 4, and 8) In the following pseudocode, which raise will an employee

ID: 641962 • Letter: 2

Question

2. (TCOs 3, 4, and 8) In the following pseudocode, which raise will an employee in Department 9 receive?

          If department < 5 then
                 Set raise = 100
          Else
                 If department < 9 then
                        Set raise = 250
                 Else
                        Set raise = 375
                 EndIf
          EndIf
(Points : 5)        100
       375
       250
       0

Question 3. 3. (TCOs 3 and 4) Which of the selection structures determines whether the user enters a number outside a range of 20 and 45?

(Points : 5)        If commission <> 45
       If commission <= 45
       If (commission >= 20) && (commission <=45)
       If (commission < 20) || (commission > 45)

Explanation / Answer

2) b(375)
3) d
4) b(3)
5) a
6) b
7) b(3)
8) b(1)
9) c
10) b
11) d
12) c(98)
13) d
14) d(RETURN)