create a java application that: Prompts the user for a number called num (MUST BE INTEGER). Finds if num is odd or even.   if the num is even, Outputs: - num is an EVEN number.                    - Result of (num * 3) If the num is odd, Outputs:  - num is an ODD number.                 - Result of (num / 2)

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter4: More Object Concepts
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question

create a java application that:

  1. Prompts the user for a number called num (MUST BE INTEGER).
  2. Finds if num is odd or even.  

if the num is even, Outputs:
- num is an EVEN number.                   
- Result of (num * 3)

If the num is odd, Outputs: 
- num is an ODD number.                
- Result of (num / 2)   

Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Files and Directory
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT