Right triangle calculator

General Computer Utilities
Post Reply
gohbucks69
Posts: 5
Joined: Sun Mar 11, 2007 6:45 pm

Right triangle calculator

Post by gohbucks69 »

Find any side of a right triangle when any two sides or a side and an angle are known.
Attachments
Trig.zip
(1.52 KiB) Downloaded 562 times
gohbucks69
Posts: 5
Joined: Sun Mar 11, 2007 6:45 pm

New Version

Post by gohbucks69 »

Updated similar to Rt_Triangle1.zip but added code to output degrees in DDºMM'SS"

Also added "*******************" to disabled boxes instead of "0"
Attachments
Rt_Triangle.zip
(1.88 KiB) Downloaded 464 times
Last edited by gohbucks69 on Fri Mar 23, 2007 7:23 pm, edited 1 time in total.
stpendl
Site Admin
Posts: 61
Joined: Wed Jan 18, 2006 10:05 pm
Location: Austria

Post by stpendl »

I have done some updates to allow tabbing through the boxes and hitting of ENTER to solve the triangle.

Replaced any IF..THEN..GOTO by SELECT..CASE.

Turned any procedure into a SUB to avoid GOTO.

Update: Merged all ERRORx SUB's into one
Update: Corrected checking for division by zero
Attachments
Rt_Triangle_1.zip
Enhanced usability and program flow
fixed a spelling error
(1.68 KiB) Downloaded 491 times
Stefan
The invisible Admin
Post Reply