Explain (in words) how bonuses are assigned in the following example:if(saleAmount > 1000)if(saleAmount < 2000)bonus = 100;elsebonus = 50;
What will be an ideal response?
In this example, the following bonuses are assigned:
* If saleAmount is between $1000 and $2000, bonus is $100 because both evaluated expressions are true.
* If saleAmount is $2000 or more, bonus is $50 because the first evaluated expression is true and the second one is false.
* If saleAmount is $1000 or less, bonus is unassigned because the first evaluated expression is false and there is no corresponding else.
You might also like to view...
iPhone, iPad, and iPod Touch owners can find apps for their devices at the online Apple ____________________.
Fill in the blank(s) with the appropriate word(s).
To see if a presentation can be viewed in earlier versions of PowerPoint without loss of features, you would click ________
A) Check compatibility B) Version Check C) Find Issues D) Presentation Audit
The ________ is the characteristic that defines the kind of data that you can type in a field, such as numbers, text, or dates.
a. Data Type b. Navigation Pane c. field properties d. object window
The manner in which text displays around an object.
What will be an ideal response?