in reply to Help w/ Law of Sines script
So, DC mentioned reducing the redundancy in your code, so I won't retype it.
But, I do want to encourage you and give you some food for thought: When I wrote this same thing in high school, I incorporated the law of sines, law of cosines, and the fact that the sum of the angles is 180 into a single unified program. It would prompt you for 3 sides and angles. Enter what you know, or ? to solve for that, or blank for don't know/don't care. Then it tells you what you wanted to know.
—John
|
|---|