See this link for Assignment
Policies, Submission Instructions, and Grading Guidelines.
1. Write a Java application that does the following:
2. For I/O, use either the Scanner/System or JOptionPane classes.
3. Ask the user to enter one (1) integer.
4. Use “if statements” to determine the following properties about the integer.
5. Determine if the integer is positive.
6. Determine if the integer is zero.
7. Determine if the integer is negative.
8. Determine if the integer is even. Use modulus (the
remainder of a division, which is the operator %). For example, modulus 2 for
even numbers is always 0. So the statement ((N % 2) == 0) is always true if N
is an even number.
9. Determine if the integer is odd. Use modulus (the remainder
of a division, which is the operator %).
10. Determine if the integer is divisible by 2 or 3 or 5. Write one “if statement” using “or” (||)
operators. Use modulus (the remainder of a division, which is the operator %).
11. Determine if the integer is divisible by 2 and 3 and 5.
Write one “if statement” using “and” (&&) operators. Or write 3 nested “if
statements”. Use modulus (the remainder of a division, which is the operator
%).
12. Display appropriate output.
13. Don’t forget to use try-catch blocks, so that your program
cannot crash.
© 2007 William Albritton