Essay
Create an if statement that will check if the variable salesAmt is greater than the constant SALES_QUOTA . If true, create a block statement that will calculate salesAmt * BONUS_PERCENT and store the result in a variable named bonusPay . The block statement will then compute totalPay by adding salesAmt to bonusPay . Outside of the if structure, add a println statement that will output the totalPay value. Be sure to use curly braces and semicolons appropriately.
Correct Answer:

Verified
if(salesAmt > SALES_QUOTA)
{ ...View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Correct Answer:
Verified
{ ...
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Q2: You can use the _, which is
Q3: A(n) _ is a series of if
Q4: The compiler does not take indentation into
Q5: What is a conditional operator? Show an
Q6: Match each term with the correct statement
Q8: In the switch structure, break is followed
Q9: A _ chooses among alternative courses of
Q10: When an expression containing a _ is
Q11: When you block statements, you must remember
Q12: The simplest statement you can use to