Question: Write a Java program to ask the user to input a number from the keyboard. The output should indicate whether it is positive or negative,

Write a Java program to ask the user to input a number from the keyboard. The output should indicate whether it is positive or negative, a floating number or an integer, an even number or an odd number (Use IF...ELSE statements). The execution of the program should be (Case 1) Please input a number: 35.6 35.6 is a positive, floating number. (Case 2) Please input a number: -28 -28 is a negative, even number. Write a program called CheckPassFail which prints "PASS" if the int variable "mark" is more than or equal to 50; or prints "FAIL" otherwise. The program shall always print "DONE" before exiting (Use IF...ELSE statement)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
