You have posted 3 problems of the same type; namely give 3 elements of a triangle, construct the triangle. Here's a link that shows geometric constructions for many of the possibilities of the 3 elements --
The many ways to construct a triangle and additional triangle facts
The program that you referenced seems to be a very nice program to solve the problem for "a few" of the many possibilities for the 3 elements. I'm going to try and contact the author to see if he might give some indication as to how the program is written.
I think the best solution is geometric in nature. For example, (one of your posts), given $h_a,\,h_b,\,h_c$, it is clear that $h_aa=h_bb=h_cc=2S$ and so the sought triangle $T$ is similar to the triangle $T_1$ with sides $1/h_a,\,1/h_b,\,1/h_c$. The latter is easy to construct and then a similarity transformation produces T. Easily, the area $S$ of $T$ satisfies $$S={1\over 4S_1}$$
For the problem at hand you're given $S$, $p$ and $A$. So in standard notation, let $x=c$. Since $S=1/2bc\sin(A)$, in terms of $x$, $b=2S/(x\sin(A)$. By the law of cosines you can get a in terms of x. So
$$x+2S/(x\sin(A)+\sqrt{x^2+4S^2/(x^2\sin^2(A))-4S/\sin(A)\cos(A)}-p=0$$
So now "all you have to do" is substitute for the given values and solve for x. You could try and simplify the equation, but you'll probably be forced to solve numerically anyway. So I just solved the above with the given values and obtained 2 solutions for $x=c$, namely $x=8.7503$ and $x=13.7138$. Then from here, $a$ and $b$ are easily obtained. Here's the graph of the function above:
View attachment 5079
The graph indicates exactly 2 solutions, and I'm pretty confident in this case that there are exactly 2 such triangles. However, this graphical method in general seems to be a little suspect. Again, the best solution is a geometric solution. For your problem about two heights and the perimeter, I could not find a geometric solution. However, a graphical solution similar to the above is fairly easy. and I leave it to you.