SOLUTION: A cool Java program takes in a two-digit integer. If the integer is even, it prints half the integer, while if the integer is odd it prints twice the integer. If 17 was printed, wh

Algebra ->  Customizable Word Problem Solvers  -> Misc -> SOLUTION: A cool Java program takes in a two-digit integer. If the integer is even, it prints half the integer, while if the integer is odd it prints twice the integer. If 17 was printed, wh      Log On

Ad: Over 600 Algebra Word Problems at edhelper.com


   



Question 258354: A cool Java program takes in a two-digit integer. If the integer is even, it prints half the integer, while if the integer is odd it prints twice the integer. If 17 was printed, which of the following could have been entered?
I. 17
II. 34
III. 68
A II and III b) None c) III d) I and II e) II

Answer by richwmiller(17219) About Me  (Show Source):
You can put this solution on YOUR website!
A cool Java program takes in a two-digit integer. If the integer is even, it prints half the integer, while if the integer is odd it prints twice the integer. If 17 was printed, which of the following could have been entered?
17 can't be twice any integer since it is odd.
so it must be half the integer
n/2=17
n=34
answer e) II 34