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...

________ software is used to perform calculations and numerical analyses

A) Word Processing B) Presentation C) Spreadsheet D) Personal information manager

Computer Science & Information Technology

____ regions are areas that can be changed in the pages created from a template.

A. Variable B. Editable C. Changing D. Modifiable

Computer Science & Information Technology

Pressing F5 starts a presentation from the ________ slide

Fill in the blank(s) with correct word

Computer Science & Information Technology

Although many people use the terms World Wide Web and ____ interchangeably, there is a difference, as shown in the accompanying figure.

A. browser B. social networking C. Internet D. Web

Computer Science & Information Technology