Question: Help with if else statements in Java? Part 1: Write an if statement that assigns 16 to num1 when num2 is equal to 20, and
Help with if else statements in Java?
Part 1: Write an if statement that assigns 16 to num1 when num2 is equal to 20, and an if-else statement that assigns 3.2 to y when x is equal to 2.4, otherwise it should assign 2.5 to y
Part 2: Using the following chart, write an if-else-if statement that assigns 4%, 6%, or 8% to commission rate, depending on the value in sales

Sales Over $28,000 $15,000 to $28,000 Less than $15,000 Commission Rate 6%
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
