A company issues $5,000.00 bonuses at the end of the year to all employees who earn less than $100,000. Salary and bonus are both defined as double data types. Which of the following selection statements would assign the correct amount to bonus?
A) if (salary < $100,000) bonus == $5000;
B) if (salary < 100000) bonus = 5000;
C) if (salary <= 100000) bonus = 5000;
D) if (salary < 100000) ; bonus = $5000;
Correct Answer:
Verified
Q49: if (a > 10)
if (b >
Q50: When a single variable may need to
Q51: if (amount > 1000)
result = 1;
Else
if
Q52: The switch statement case value can evaluate
Q53: if (aValue < largest ) result =
Q55: if (amount > 1000)
result = 1;
Else
if
Q56: if (examScore > 89)
grade = 'A';
Q57: How can the compound conditional expression ((average
Q58: if (a > 10)
if (b >
Q59: if (examScore > 89);
grade = 'A';
Using
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