I'm trying to create a program which automates the trig solving problem.
The program requests input from the user and solves the triangle using the input.
I want to make it so that the user does not need to know which rule to use, the user simply:
- Enters the known angle and side
- Enters 0 for the irrelevant side
- Enters 'x' for the unknown side
The result tries to solve the relevant trig ratio with respect to 'x'.
The code keeps failing, however, and I keep getting the error which is something like did not come up with TRUE or FALSE (the if statements use were pretty simple).
Is there an issue with users inputting an unknown variable as an input? For example, if the input was stored to hyp, could we make hyp=x?
Any suggestions for ways to solve this?