Question: Write a Java program that prompts the user for his/her favorite integer then calculates and prints the following so that it is true about the

 Write a Java program that prompts the user for his/her favorite

Write a Java program that prompts the user for his/her favorite integer then calculates and prints the following so that it is true about the number entered. Note: I put them in strings for literals. If a set is in parenthesis chose one of the options. The \# represents their number. Also, only print out "I like the number 42 also!" if the number the user types in is 42 (and only 42 ). - "You entered \# as your number." - ("I like the number 42 also!" II Nothing) - ("Your number is even." II "Your number is odd.") - ("Your number is positive." || "Your number is negative." II "Your number is zero.")

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!