What will be the value of charges after the following code is executed? double charges,rate = 7.00;
Int time = 180;
Charges = time < = 119 ? rate * 2 :
Time / 60.0 * rate;
A) 7.00
B) 14.00
C) 21.00
D) 28.00
Correct Answer:
Verified
Q21: Enclosing a group of statements inside a
Q22: The expression tested by an if statement
Q24: What would be the value of discountRate
Q25: What will be printed when the following
Q28: What would be the value of discountRate
Q29: Which of the following is the correct
Q30: What is the value of ans after
Q31: What will be printed when the following
Q49: What would be the value of discountRate
Q54: If str1 and str2 are both Strings,
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