What would be the value of discountRate after the following statements are executed?
Double discountRate;
Char custType = 'B';
Switch (custType)
{
Case 'A':
DiscountRate = .08;
Break;
Case 'B':
DiscountRate = .06;
Case 'C':
DiscountRate = .04;
Default:
DiscountRate = 0.0;
}
A) .08
B) .06
C) .04
D) 0.0
Correct Answer:
Verified
Q47: What does the following code display?
Int d
Q48: Unicode is an international encoding system that
Q49: An important style rule you should follow
Q50: What will be printed when the following
Q52: Which of the following will format
Q52: The if/else statement will execute one group
Q53: What will be the value of charges
Q54: If str1 and str2 are both Strings,
Q55: Because the || operator performs short-circuit evaluation,
Q56: When two Strings are compared using the
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents