{"id":2860,"date":"2021-10-29T09:06:53","date_gmt":"2021-10-29T09:06:53","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=2860"},"modified":"2021-10-29T09:11:35","modified_gmt":"2021-10-29T09:11:35","slug":"visual-basic-trigonometry-calculator","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/visual-basic-trigonometry-calculator\/27834.html","title":{"rendered":"Visual Basic Trigonometry Calculator"},"content":{"rendered":"<p>I am finding quite difficult in coding VB Trigonometry Calculator. Their Should be three sides and two angles. When two sides are entered it should display the answers of the remaining or when 1 side and a angle is entered it should also display the answer.<\/p>\n<p>rivate Sub cmdCompute_Click()<br \/>\nDim txtSideA, txtSideB, txtAngleC, txtAngleB As Double<\/p>\n<p>Side A = txtSideA<br \/>\nSide B = txtSideB<br \/>\nSide C = txtSideC<br \/>\nAngle A = txtAngleA<br \/>\nAngle B = txtAngleB<\/p>\n<p>If Sin(txtSideC) = txtAngleA And txtAngleB Then<br \/>\ntxtSideAB<br \/>\nElseIf txtAngleA = txtSideA And txtAngleB Then<br \/>\ntxtSideBC<br \/>\nElseIf txtSideB = txtSideA And txtAngleB Then<br \/>\ntxtSideAC<br \/>\nElseIf txtSideA = txtSideB And txtSideC Then<br \/>\nEnd If<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>End Sub<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":2},"question-category":[55],"question_tags":[],"class_list":["post-2860","question","type-question","status-publish","hentry","question-category-programming"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/2860","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=2860"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=2860"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=2860"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=2860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}