Demonstrate how to program if..else statement and arithmetic operations and modulus in Java