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

Help with if else statements in Java? Part 1: Write an if

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!