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.

What will be an ideal response?

if(salesAmt > SALES_QUOTA){    bonusPay = salesAmt * BONUS_PERCENT;    totalPay = salesAmt + bonusPay;}System.out.println("Total pay is " + totalPay);

Computer Science & Information Technology

You might also like to view...

A(n) ________ locker is a metal cabinet with individual compartments that can be locked individually

a. Forensic b. Evidence c. Police d. None of the above

Computer Science & Information Technology

The Federal Commerce Commission is responsible for enforcing consumer protection laws that prevent fraud, deception, and unfair business practices.?

Answer the following statement true (T) or false (F)

Computer Science & Information Technology