Write a nested if statement that will check if the variable qtySold is greater than the QTY_QUOTA constant. If true, evaluate a second expression that will check if the variable totalSales is greater than the constant SALES_QUOTA. If the second expression is also true, create an assignment statement that will assign the constant BONUSAMT to the variable bonus. After BONUSAMT is assigned, the if structure ends.
What will be an ideal response?
if(qtySold > QTY_QUOTA)
if(totalSales > SALES_QUOTA)
bonus = BONUSAMT;
(The semicolon will only be placed after the final statement.)
Computer Science & Information Technology
You might also like to view...
A computer is an electronic, digital device that works with continuous data.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology
Which command lists the installed printer drivers available to CUPS?
What will be an ideal response?
Computer Science & Information Technology