1. Engineering
  2. Computer Science
  3. write a java program that accepts an integer number from...

Question: write a java program that accepts an integer number from...

Question details

Write a Java program that accepts an integer number from the user between 20 and 100. Next, divide the number by 12 and determine if the remainder is even or odd.

Inputs: The program must prompt the user for an integer value between 20 and 100.

Enter an integer between 20 and 100:

Output: The program should have an output similar to this. The < and > symbols will contain the actual values entered and calculated.

                The remainder of <number> divided by 12 is <remainder>, and it is <odd or even>.

Example of a program run: The value 35 is entered by the user

                Enter an integer between 20 and 100: 35

                The remainder of 35 divided by 12 is 11, and it is odd.

Step 1. Create an algorithm (either flowchart or pseudocode) that you will use to write the program. Place the algorithm in a Word document.

Step 2. Code the program in Eclipse and test the program to verify it works correctly.

Step 3. Use the Snip It tool in Windows or a similar tool on the Mac to cut and paste the Eclipse Console output window into the same Word document as the algorithm in Step 1.

Problems Javadoc Declaration ConsoleData Hierarchy <terminated Chpts Project [Java Application] C:AProgram FilesJavaljrel.8.0 1441bin)javaw.exe (Oct 25, 2017,124311 PM) Entera er between 20 and 100: 35 he rader of 35 divided by 12 is 11, and it is odd

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution