Question: 1. Create a Java Project named Ch3aEx 2. Create a new class named DoTheMath. 3. Prompt the user for 2 integers. 4. Create 3 methods
1. Create a Java Project named Ch3aEx 2. Create a new class named DoTheMath. 3. Prompt the user for 2 integers. 4. Create 3 methods as follows: - Add 10 to the entered integer and display. - Add 100 to the entered integer and display. - Add 1000 to the entered integer and display. Sample:
Enter an integer: 7 Enter another integer: 10 7 plus 10 is 17 7 plus 100 is 107 18 plus 10 is 28 18 plus 100 is 118 18 plus 1000 is 1018
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
