Create an if statement that checks if the variable salesAmt is greater than or equal to the QUOTA_AMT constant. Use the logical OR operator to also check if salesAmt is greater than or equal to the HIGH_SALES constant. If either expression is true, assign the value of the LARGE_QUOTA constant to the variable bonusAmt.
What will be an ideal response?
if(salesAmt >= QUOTA_AMT || salesAmt >= HIGH_SALES)
bonusAmt = LARGE_QUOTA;
Computer Science & Information Technology
You might also like to view...
PowerPoint allows you to customize every fifth row or column in a table through a predefined style
Indicate whether the statement is true or false
Computer Science & Information Technology
Solve the following equations with one variable for an explicit value (or values) of the unknown:
3 / x =- 2
Computer Science & Information Technology