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
Q30: What is the value of ans after
Q31: What will be printed when the following
Q32: Which of the following will format 12.78
Q34: What will be the values of ans,x,and
Q34: This is a boolean variable that signals
Q36: In an if/else statement,if the boolean expression
Q37: Which of the following correctly tests the
Q39: These operators are used to determine whether
Q42: What is the value of ans after
Q44: What is the value of x after
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