Examlex

Solved

Create an If Statement That Will Check If the Variable

question 7

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.


Definitions:

Relative Frequencies

The proportion of times that a certain event occurs relative to the total number of outcomes.

Cross-Classification Table

A table that displays the frequency distribution of two or more categorical variables.

Nominal Variables

Variables that represent categories with no intrinsic ranking or order.

Pet Ownership

The act of owning or being responsible for the care of pets such as dogs, cats, and other domestic animals.

Related Questions