Case-Based Critical Thinking QuestionsCase 1: Jack of All TradesYou've been asked to design an application for Jack of All Trades, which rents small power equipment to commercial and residential customers, to process its transactions. ThestrCustomervariable will be used to determine whether a customer is commercial (C) or residential (R). Commercial customers receive a 10% discount if they are members of the Rental Rewards Program. Residential customers receive a 5% discount if they are members.
Which of the following If clauses would evaluate to True and apply the 10% discount for a commercial customer?
A. If strCustomer <> "C" AndAlso strMember <> "Y"
B. If strCustomer = "C" AndAlso strMember = "Y"
C. If strCustomer <> "R" OrElse strMember = "Y"
D. If strCustomer = "C" OrElse strMember = "Y"
Answer: B
Computer Science & Information Technology
You might also like to view...
Discuss Discretionary Access Control and Mandatory Access Control.
What will be an ideal response?
Computer Science & Information Technology
The ____________________ operation is a function of Boolean algebra in which two bits are compared, and if the two bits are identical, the result is a binary 0.
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology