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
{ ...
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Q70: Create an if…else statement that will check
Q71: Q72: Explain the use of the NOT operator. Q73: Q74: What is wrong with the following statement? Q75: In Boolean expressions, when you want to Q76: if (maxValue = 100) Q78: Create a switch statement that will test Unlock this Answer For Free Now! View this answer and more for free by performing one of the following actions Scan the QR code to install the App and get 2 free unlocks Unlock quizzes for free by uploading documents
System.out.println ("Your limit