Which of the following pseudocode statements expresses the condition below?A hotel customer gets a 10% discount for showing a hotel club card or a travel club card.
A. If showsHotelClubCard And showsTravelClubCard Then
discount = 0.10
Else
discount = 0.00
End If
B. If showsHotelClubCard Or showsTravelClubCard Then
discount = 0.00
Else
discount = 0.10
End If
C. If showsHotelClubCard Or showsTravelClubCard Then
discount = 0.10
Else
discount = 0.00
End If
D. If showsHotelClubCard And showsTravelClubCard Then
discount = 0.00
Else
discount = 0.10
End If
Answer: C
You might also like to view...
To catch exceptions thrown by a section of code, you must first enclose those lines in a ________ block.
a) try b) finally c) throw d) exception e) None of the Above.
With the use of icon sets for conditional formatting, icons that make your data easier to interpret are placed ________ the cells
A) above B) outside C) inside D) below
FIGURE 10-1Referring to Figure 10-1 above, the style attribute of the second table cell initially sets the background color to ____.
A. white B. black C. either a. or b. D. neither a. nor b.
What is the default data table style?
A. Normal B. Medium 1 C. Medium 2 D. None