Question: Compulsory Task 1 In a file called palindromeRecursion.java, create: o a recursive function that determines whether a given array is a palindrome. o Compile, save

Compulsory Task 1
In a file called palindromeRecursion.java, create:
o a recursive function that determines whether a given array is a
palindrome.
o Compile, save and run your file.
Compulsory Task 2
Follow these steps:
In a file called LCMRecursion.java, create:
o a recursive function to calculate the lowest common multiple (LCM)
for two numbers x and y using recursion.
o LCM is the smallest positive integer that is a multiple of both the
numbers.
o Compile, save and run your file.

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!