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.
Correct Answer:
Verified
{
b...
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Q60: Match each term with the correct statement
Q63: if(firstValue == secondValue)
{
int total =
Q64: if(qtySold > QUOTA)
bonusPay = 50;
totalPay = regPay
Q64: Write a nested if statement that will
Q66: Write a single-alternative if statement that will
Q68: Create an if statement that checks if
Q69: public class Student
{
private int studentNum;
Q70: Create an if…else statement that will check
Q76: if (maxValue = 100)
System.out.println ("Your limit
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