Intro to Java Classwork: Basic Calculator, Part 2
Write a Java program contained in a single file named
"BasicCalculatorPart2.java" that asks for, and gets, a
positive decimal number (double) from the user.  The
program should then ask for, and get, a second decimal
number, different from the first number.

After getting the two decimal numbers, your program should
subtract the smaller number from the larger number (larger
minus smaller) and print the result in a sentence.  Then, your
program should divide the smaller number into the larger number
(larger divided by smaller) and print that result in a sentence.

Note that the user can enter the two numbers in any order and
should not be asked to tell which number is larger or smaller.
It is up to you, with your code, to determine which number is
smaller and which is larger.

For this program, other than the 'Scanner' class, you may not
import or use any external methods.  However, it is okay to put
all of your code inside the 'main' method of your program.


As always, all of your code must be your own, written entirely and
only by you within your online CodeHS.com account.  You must never
copy/paste, receive, view, or in any way use code that was created
or modified by another person, entity, or artificial intelligence.


Advanced Option #1
After completing the regular assignment above, round the above answers
to (up to) two decimal places, depending on how many digits come after
the decimal point after the operations.  That is, if an answer has zero,
one, or two digits after the decimal point, do not perform any rounding
or add any extra zeros to the end of the number.  But if an answer has
more than two digits after the decimal point, round that answer to two
decimal places. For example, 7.486 becomes 7.49, 21.854 becomes 21.85,
307.09 stays at 307.09, 6.8 stays at 6.8, and 52 stays at 52 (not 52.0).

Advanced Option #2
Don't restrict the user to entering only positive decimal numbers.
This means that the smaller number could be zero, and since division
by zero is undefined, you should check to see if the user's smaller
number is zero.  If it is, then don't divide the two numbers, but
instead display a message to the user stating that the division
cannot be performed because division by zero is not allowed.