Question: Write a Java program that can accept an integer from user, and then determine if the number is negative or positive. Display a message (Number
- Write a Java program that can accept an integer from user, and then determine if the number is negative or positive. Display a message (Number is negative) for input value below 0, and another message (Number is positive) for input value that is above 0. Repeat the process until user enter value 0 as input. Also, you should implement at least one method (e.g. verifyNumber() for analysing the given number/input and to print the corresponding message).
TESTING: Test your program for each of the possible options (negative number, and then positive number).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
