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
Q41: if (value1 > value2) largestOne = value1;
Else
If
Q56: if (a > 10)
if (b > 10)
if
Q56: if (examScore > 89)
grade = 'A';
Q57: How can the compound conditional expression ((average
Q59: if (amount > 1000)
result = 1;
else
if (amount
Q65: By properly _ the else clauses with
Q69: With a switch statement, if no match
Q70: _ operators allow you to test variables
Q71: The _ method will convert a string
Q74: Forms of the if statement include one-way,
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