Question: Write an application that asks a user to type an even number or the sentinel value 999 to stop. When the user types an even
Write an application that asks a user to type an even number or the sentinel value 999 to stop. When the user types an even number, display the message “Good job!” and then ask for another input. When the user types an odd number, display an error message and then ask for another input. When the user types the sentinel value 999, end the program. Save the file as EvenEntryLoop.java.
Step by Step Solution
3.40 Rating (163 Votes )
There are 3 Steps involved in it
import javaxswing public class EvenEntryLoop public sta... View full answer
Get step-by-step solutions from verified subject matter experts
