What value is h supposed to have?
Where is that value available so it can be assigned to h?
Printable View
What value is h supposed to have?
Where is that value available so it can be assigned to h?
can you check the test class ?
--- Update ---
h get the values from the user
How much of this code did you write?
How much of the code did you copy from someone else? You don't seem to be able to read the code and understand what the code is doing. If you have not written all this code, you need to say that.
It may be that this code is too complicated for your current knowledge and you should start with a simpler program to build your knowledge before trying to work on this program.