Question: Compare Program DESCRIPTION: Create a program that prompts the user for an integer. The program should compare the user's number to 10, and then print


Compare Program DESCRIPTION: Create a program that prompts the user for an integer. The program should compare the user's number to 10, and then print an appropriate message. The program must end with a message that indicates that the program is done running. **Note: You may assume that the user will enter a valid integer value. SPECIFICATIONS: File name: Compare.java The code to complete the task should be in a separate method that is called by the main method The middle and last lines of output need to match the sample output exactly Format and comment your code Be sure to close the Scanner object SAMPLE OUTPUT. Enter an integer: 14 The number 14 is GREATER than 10. Program finished! ========== Enter an integer: 9 The number 9 is NOT GREATER than 10. Program finished! ========== Enter an integer: 10 The number 10 is NOT GREATER than 10. Program finished
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
