You are on page 1of 1

Create a math function library that contains the following functions.

Remember that you can use them inside each other if necessary.
1. Iscapicua: Returns true if the number passed as a parameter is capicuous and
false otherwise.

2. IsPrime: Returns true if the number that is passed as a parameter it is prime


and false otherwise.

3. Digits: Counts the number of digits of an integer.

4. Flip: Flips a number over.

5. digitN: Returns the digit that is in the n position of an integer. Start by counting
by 0 and from left to right.

6. DigitPosition: Gives the position of the first occurrence of a digit within an


integer. If not found, return -1.

7. RemoveByBehind: Removes a number n digits from the back (by the right).

8. PasteByBack: Add a digit to a number from behind.

9. NumberSnippet: Takes the start and end positions as parameters within a


number and returns the corresponding chunk.

10. NumbersTogether: Glue two numbers together to form one.

After designing the above functions in the project, make a Java application
that collects each of the functions that the functions do through a parameter
input entered by the user.

You might also like