Solved

Write a Nested If Statement That Will Check If the Variable

Question 38

Essay

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.

Correct Answer:

verifed

Verified

if(qtySold > QTY_QUOTA)
   if...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions