Question: I need help with this Java programming assignment: Write a program that prompts the user for an even multiple of 17 between 100 and 500
I need help with this Java programming assignment:
Write a program that prompts the user for an even multiple of 17 between 100 and 500. Use ONE Java selection to evaluate the user's input and assign the result to a boolean variable. Finally, embed a conditional operator that uses the boolean variable within a println(). This println() should print either a positive response that includes the other factor or a message that the input was unacceptable. See Sample Outputs:
Sample Output
Enter an even multiple of 17 that is between 100 and 500
442
Good, the other factor is 26.
Sample Output
Enter an even multiple of 17 that is between 100 and 500
388
Sorry, that input is unacceptable.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
