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);
You might also like to view...
Case-Based Critical Thinking QuestionsCase 6-1Gabe is learning how to add graphics to a worksheet. Kyra, who has more experience, answers several questions Gabe has.Gabe asks Kyra where he can find tools that will allow him to draw simple lines and shapes. She advises him to use the _____.
A. Shapes tools from the Illustrations group on the INSERT tab B. Lines and Shapes tools from the Illustrations group on the HOME tab C. Shapes tools from the Drawings group on the INSERT tab D. Vector Graphic tools from the Illustrations group on the INSERT tab
Provide an example of unprotected dangerous speech.
What will be an ideal response?
If you need to add an image or information to every slide in a presentation, you should add it to the slide master
Indicate whether the statement is true or false
You can add the appropriate HTML tags to specify the element type for each text item on a web page. _________________________
Answer the following statement true (T) or false (F)