What will be the value of pay after the following statements are executed?
int hours = 45;
Double pay, payRate = 10.00;
Pay = hours <= 40 ? hours * payRate :
40 * payRate + (hours - 40) *payRate * 1.5;
A) 400.00
B) 450.00
C) 465.00
D) 475.00
Correct Answer:
Verified
Q16: The switch statement is a
A) multiple alternative
Q17: All it takes for an AND expression
Q18: In an if-else statement, if the boolean
Q19: When testing for character values, the switch
Q20: Unicode is an international encoding system that
Q22: The _ statement is used to create
Q23: A _ is a boolean variable that
Q24: What will be the value of x
Q25: Which of the following expressions determines whether
Q26: What will be the values of ans,
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