Question: ONLLENE 3.2.3: Basic if-else. Reset Write an if-else statement for the following If numDifference is greater than .20, execute totalDifference =-10. Else, execute totalDifference-numDifference. 1

 ONLLENE 3.2.3: Basic if-else. Reset Write an if-else statement for the

ONLLENE 3.2.3: Basic if-else. Reset Write an if-else statement for the following If numDifference is greater than .20, execute totalDifference =-10. Else, execute totalDifference-numDifference. 1 import java.util.scanner 3 public class NumberDifference t 4 public static void main (String args) int totaldifference; int numDifference; Scanner scnr new Scanner(System.in); numDifference - scnr.nextIntO Program will be tested with values: -18, -19, -20, -21. 10 " Your solution goes here / 12 13 System.out.printlndtotalDifference); 14 15 1 16 Check Next Feedback

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!