Java Programming Language: The program is to be called…

Question Answered step-by-step Java Programming Language: The program is to be called… Java Programming Language: The program is to be called Harmonic.javaI could use a little help with my coding. Directions posted below. You will put your recursion skills to good use by writing a program to compute harmonic numbers. Mathematically, harmonic numbers are defined as follows: Image transcription text1 H =1+: + + 4… Show more Your job is to make a class, Harmonic, that contains two methods: public static double calcIterativeHarmonic(int n)that returns the value of the nth harmonic using iteration (a loop). public static double calcRecursiveHarmonic(int n) that returns the value of the nth harmonic using recursion. For example, if the value 3 were passed, each method would return 1.83333 since . . In your main method, print out the first 20 harmonic numbers twice. Once using iteration, and once using recursion.  Computer Science Engineering & Technology Java Programming CS 21 Share QuestionEmailCopy link Comments (0)