Question: IfApp.java Create an instance of Scanner to read in user input: .Read in two double numbers n1 and n2. If n1 is evenly divisible by

 IfApp.java Create an instance of Scanner to read in user input:

IfApp.java Create an instance of Scanner to read in user input: .Read in two double numbers n1 and n2. If n1 is evenly divisible by n2 print the corresponding message (see output) Sample Output1 Enter 2 numbers nl and n2: 2.75 5.5 5.5 is evenly divisible by 2.25 Sample Output2 Enter 2 numbers nl and n2: 10.0 2.5 10 is evenly divisible by 2.5 . If n2 is evenly divisible by n1 print the corresponding message (see output) Make sure to read in the user input next to the prompt but not touching the prompt. Make the prompt and the labels look like in the output on the right Sample Output3 Enter 2 numbers nl and n2: 5.75 6.25 Note: nothing is printed if neither number is evenly divisible by the other

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!