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
You might also like to view...
What property restricts the use of a control when set to False?
(A) Available (B) Accessible (C) Enabled (D) Supported
Verification outcomes are based on evidence obtained through assessment.
Answer the following statement true (T) or false (F)
What would be printed out as a result of the following code?
``` System.out.println("The quick brown fox" + "jumped over the \n" "slow moving hen."); ``` a. The quick brown fox jumped over the \nslow moving hen. b. The quick brown fox jumped over the slow moving hen. c. The quick brown fox jumped over the slow moving hen. d. Nothing - this is an error
A table of figures can be created automatically from ____.
A. index entries B. captions C. page numbers D. figure numbers