Question: Please provide the java code for the above question. Please dont post the code as images. 1 Create an interface Advance Calculator with the below

 Please provide the java code for the above question. Please dontpost the code as images. 1 Create an interface Advance Calculator with

Please provide the java code for the above question. Please dont post the code as images.

1 Create an interface Advance Calculator with the below methods. 1. int crosssum(int a) - To add the digits of given number 2. boolean checkPrime(int a) - To check whether the given number is prime or not 3. int factorial(int a) - To calculate the factorial value Create a class Calculator and implement the Advance Calculator. Get one input from the user and check whether the given number is a prime number or not, calculate the factorial value of the given number and find the sum of digits of the factorial result. Input Format The input consists of an Integer Output Format Prime number or Not prime number Factorial value of the given number Sum of digits of factorial result Sample Testcases Testcase 1 Input Testcase 1 Output Prime number 120 Testcase 2 Input Testcase 2 Output Not prime number 24

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!