<snapdata remixID="9954923"><project name="2.5 Kyle Triangle Guesser" app="Snap! 6, https://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,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</thumbnail><stage name="Stage" width="480" height="360" costume="0" color="255,255,255,1" tempo="60" threadsafe="false" penlog="false" volume="100" pan="0" lines="round" ternary="false" hyperops="true" codify="false" inheritance="true" sublistIDs="false" scheduled="false" id="1"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAOhUlEQVR4Xu3VwQkAAAjEMN1/abewn7jAQRC64wgQIECAAIF3gX1fNEiAAAECBAiMAHsCAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQIHLFxAWmhEwHPAAAAAElFTkSuQmCC</pentrails><costumes><list struct="atomic" id="2"></list></costumes><sounds><list struct="atomic" id="3"></list></sounds><variables></variables><blocks></blocks><scripts></scripts><sprites><sprite name="Triangle Wizard" idx="1" x="-50" y="-50" heading="90" scale="1" volume="100" pan="0" rotation="1" draggable="true" costume="0" color="40,40,40,1" pen="tip" id="8"><costumes><list struct="atomic" id="9"></list></costumes><sounds><list struct="atomic" id="10"></list></sounds><blocks></blocks><variables></variables><scripts><script x="10" y="10"><block s="receiveKey"><l><option>3</option></l></block><block s="gotoXY"><l>-50</l><l>-50</l></block><block s="doSayFor"><l>This is the triangle game! Think of a specific triangle, and the next three questions will ask for each side&apos;s lengths (type the number only)</l><l>5</l></block><block s="doAsk"><l>Length of First Side:</l></block><block s="doSetVar"><l>side_1</l><block s="getLastAnswer"></block></block><block s="doAsk"><l>Length of Second Side:</l></block><block s="doSetVar"><l>side_2</l><block s="getLastAnswer"></block></block><block s="doAsk"><l>Length of Third Side:</l></block><block s="doSetVar"><l>side_3</l><block s="getLastAnswer"></block></block><block s="doIfElse"><block s="reportAnd"><block s="reportAnd"><block s="reportGreaterThan"><block s="reportSum"><block var="side_2"/><block var="side_3"/></block><block var="side_1"/></block><block s="reportGreaterThan"><block s="reportSum"><block var="side_1"/><block var="side_3"/></block><block var="side_2"/></block></block><block s="reportGreaterThan"><block s="reportSum"><block var="side_1"/><block var="side_2"/></block><block var="side_3"/></block></block><script><block s="doSetVar"><l>perimeter</l><block s="reportSum"><block s="reportSum"><block var="side_1"/><block var="side_2"/></block><block var="side_3"/></block></block><block s="doSayFor"><block s="reportJoinWords"><list><l>The perimeter of your triangle is </l><block var="perimeter"/><l>!</l></list></block><l>3</l></block><block s="doIfElse"><block s="reportAnd"><block s="reportEquals"><block var="side_1"/><block var="side_2"/></block><block s="reportEquals"><block var="side_2"/><block var="side_3"/></block></block><script><block s="doSayFor"><l>Your triangle is an equilateral triangle! Thanks for playing!</l><l>3</l></block></script><script><block s="doIfElse"><block s="reportOr"><block s="reportOr"><block s="reportEquals"><block var="side_1"/><block var="side_2"/></block><block s="reportEquals"><block var="side_2"/><block var="side_3"/></block></block><block s="reportEquals"><block var="side_1"/><block var="side_3"/></block></block><script><block s="doIfElse"><block s="reportAnd"><block s="reportOr"><block s="reportGreaterThan"><block var="side_1"/><block var="side_2"/></block><block s="reportEquals"><block var="side_1"/><block var="side_2"/></block></block><block s="reportOr"><block s="reportGreaterThan"><block var="side_1"/><block var="side_3"/></block><block s="reportEquals"><block var="side_1"/><block var="side_3"/></block></block></block><script><block s="doIfElse"><block s="reportEquals"><block s="reportSum"><block s="reportPower"><block var="side_2"/><l>2</l></block><block s="reportPower"><block var="side_3"/><l>2</l></block></block><block s="reportPower"><block var="side_1"/><l>2</l></block></block><script><block s="doSayFor"><l>Your triangle is a right isosceles triangle. Thanks for playing!</l><l>3</l></block></script><script><block s="doSayFor"><l>Your triangle is an isosceles triangle. Thanks for playing!</l><l>3</l></block></script></block></script><script><block s="doIfElse"><block s="reportAnd"><block s="reportOr"><block s="reportGreaterThan"><block var="side_2"/><block var="side_1"/></block><block s="reportEquals"><block var="side_2"/><block var="side_1"/></block></block><block s="reportOr"><block s="reportGreaterThan"><block var="side_2"/><block var="side_3"/></block><block s="reportEquals"><block var="side_2"/><block var="side_3"/></block></block></block><script><block s="doIfElse"><block s="reportEquals"><block s="reportSum"><block s="reportPower"><block var="side_1"/><l>2</l></block><block s="reportPower"><block var="side_3"/><l>2</l></block></block><block s="reportPower"><block var="side_2"/><l>2</l></block></block><script><block s="doSayFor"><l>Your triangle is a right isosceles triangle. Thanks for playing!</l><l>3</l></block></script><script><block s="doSayFor"><l>Your triangle is an isosceles triangle. Thanks for playing!</l><l>3</l></block></script></block></script><script><block s="doIf"><block s="reportAnd"><block s="reportOr"><block s="reportGreaterThan"><block var="side_3"/><block var="side_1"/></block><block s="reportEquals"><block var="side_3"/><block var="side_1"/></block></block><block s="reportOr"><block s="reportGreaterThan"><block var="side_3"/><block var="side_2"/></block><block s="reportEquals"><block var="side_3"/><block var="side_2"/></block></block></block><script><block s="doIfElse"><block s="reportEquals"><block s="reportSum"><block s="reportPower"><block var="side_1"/><l>2</l></block><block s="reportPower"><block var="side_2"/><l>2</l></block></block><block s="reportPower"><block var="side_3"/><l>2</l></block></block><script><block s="doSayFor"><l>Your triangle is a right isosceles triangle. Thanks for playing!</l><l>3</l></block></script><script><block s="doSayFor"><l>Your triangle is an isosceles triangle. Thanks for playing!</l><l>3</l></block></script></block></script></block></script></block></script></block></script><script><block s="doIf"><block s="reportAnd"><block s="reportGreaterThan"><block var="side_1"/><block var="side_2"/></block><block s="reportGreaterThan"><block var="side_1"/><block var="side_3"/></block></block><script><block s="doIfElse"><block s="reportEquals"><block s="reportSum"><block s="reportPower"><block var="side_2"/><l>2</l></block><block s="reportPower"><block var="side_3"/><l>2</l></block></block><block s="reportPower"><block var="side_1"/><l>2</l></block></block><script><block s="doSayFor"><l>Your triangle is a right scalene triangle. Thanks for playing!</l><l>3</l></block></script><script><block s="doSayFor"><l>Your triangle is a scalene triangle. Thanks for playing!</l><l>3</l></block></script></block></script></block><block s="doIf"><block s="reportAnd"><block s="reportGreaterThan"><block var="side_2"/><block var="side_1"/></block><block s="reportGreaterThan"><block var="side_2"/><block var="side_3"/></block></block><script><block s="doIfElse"><block s="reportEquals"><block s="reportSum"><block s="reportPower"><block var="side_1"/><l>2</l></block><block s="reportPower"><block var="side_3"/><l>2</l></block></block><block s="reportPower"><block var="side_2"/><l>2</l></block></block><script><block s="doSayFor"><l>Your triangle is a right scalene triangle. Thanks for playing!</l><l>3</l></block></script><script><block s="doSayFor"><l>Your triangle is a scalene triangle. Thanks for playing!</l><l>3</l></block></script></block></script></block><block s="doIf"><block s="reportAnd"><block s="reportGreaterThan"><block var="side_3"/><block var="side_1"/></block><block s="reportGreaterThan"><block var="side_3"/><block var="side_2"/></block></block><script><block s="doIfElse"><block s="reportEquals"><block s="reportSum"><block s="reportPower"><block var="side_1"/><l>2</l></block><block s="reportPower"><block var="side_2"/><l>2</l></block></block><block s="reportPower"><block var="side_3"/><l>2</l></block></block><script><block s="doSayFor"><l>Your triangle is a right scalene triangle. Thanks for playing!</l><l>3</l></block></script><script><block s="doSayFor"><l>Your triangle is a scalene triangle. Thanks for playing!</l><l>3</l></block></script></block></script></block></script></block></script></block></script><script><block s="doSayFor"><l>Unfortunately, the sides you have provided can&apos;t actually create a triangle. Thanks for playing!</l><l>5</l></block></script></block></script><comment x="226" y="120.66666666666652" w="674" collapsed="false">These three ask and wait blocks are the questiosn about the side lengths. The first one asks the first side length, and then I assign a custom made variable side_1 to the value of the answer (which the pre-built answer variable by default stores the user&apos;s answer, so assigning my variable to the answer variable is simply assigning the user&apos;s answer to my variable. This reduces confusion and ambiguity and clarifies things). I do this for all three sides, and for each question, I assign the side length to the custom made variables. I named the variables based on what value they hold, and the variables correspond to which side length I actually ask for. For example, variable side_2 holds the length of the second side. Though we can&apos;t exactly envision the triangle and see which side is actually side 2, all we need is the side lengths, no matter which side it is, and computation comes later. </comment><comment x="635.0000000000002" y="23.666666666666515" w="618" collapsed="false">This is the section where I ask the questions to the user so I can get the length of the three sides and then do the computations below to tell the user what their triangle is. First of all, the program is prompted when I do three, and I chose the number 3 because a triangle has three sides, and that is what this lab about. Then, I use the say block, and normally, I would use an ask block, but I used a say block to introduce the game. I can&apos;t just go and ask a side length with the intro or that would be weird. Then, I tell them what the next three questions will be about so they know how to answer (I tell them to type number only)</comment><comment x="435" y="236.16666666666472" w="818" collapsed="false">This is where the computation starts. First of all, we have to check if the sides they provided can even create a triangle. I use a conditional if else statement to do this. The condition uses the and predicate/boolean block where if the condition is true, then the if action is commenced, and if the condition is false, we go on to the if statement. The and predicate is just a very large block of code where ALL three of the equations have to be true. This is the triangle inequality. Side 2 plus side 3 must be greater than side 1, side 1 plus side 3 must be greater than side 2, and side 1 plus side 2 must be greater than side 3. If the other two sides combined aren&apos;t even as long as the third, then the triangle simply collapses because it can&apos;t form than apex. If this is true, then the program continues to see the perimeter, state the perimeter, and see which classification of triangles the user has. If this is false and the sides can&apos;t form a triangle, we simply go to the else, which is at the very bottom (the if else statement is giant and spans the entire thing, and the bulk of it is inside). In the else, I simply use a say block to tell them that their sides can&apos;t create a triangle, but thank them for playing. There is nothing else to do, so the program ends there.</comment><comment x="449" y="361.6666666666664" w="805" collapsed="false">To calculate the perimeter, it is very easy, and all you have to do is use the reporter block with the built-in function of addition, place the variables inside, then set that to a variable and state the perimeter by using a join block in a say block. The very first thing I do is make a new variable called perimeter, and I set the value of perimeter to side 1+side 2+side 3, and this should get the perimeter because the perimeter of a shape is simply all side lengths added together to get the length of all the sides (hence the length of the perimeter of the shape). So, all I have to do is add. Then, I use a say block with a join. I join the text that states &quot;The perimeter of your triangle is...&quot;, then I join that with the perimeter variable, which has the perimeter of the triangle, and lastly, I make one more box for an exclamation point. </comment><comment x="458" y="469.33333333333337" w="805.9999999999999" collapsed="false">Next is the long if else statement computation. I decided that the very first thing I needed to do was to cross out the most specific configuration of a triangle, which is the equilateral triangle. All sides have to be of equal length, which is very specific, so I just wanted to first build an equilateral condition if statement (out of three configurations of triangles, equilateral, isosceles, and scalene, as well as right isosceles and right scalene). The way I do this is to use an if else statement. For the condition, it is if side 1 is equal to side 2 and if side 2 is equal to side 3. If this is true, this ensures the fact that the triangle is equilateral because all side lengths inputed by the user are equal, so their triangle is an equilateral triangle. True, and we go to the if statement, which is just a say block that tells them their triangle is an equilateral triangle and thanks them for playing. False, and this means that their triangle must be an isosceles triangle or scalene triangle, and the following will compute this (there can only be three configurations, and if the sides couldn&apos;t create a triangle, another option, that would have been dealt with before as the else of the very first if else statement). </comment><comment x="459" y="602.6666666666664" w="806" collapsed="false">In the else section (after the equilateral triangle), we have another if else statement, and this is the conditional if statement for determining the isosceles triangle. If we weren&apos;t trying to find isosceles right triangles, and we only had to see if the user&apos;s triangle was an isosceles triangle, this would be much shorter because all we have to see is if two sides are equal, and that&apos;s it. The isosceles right triangle is impossible  because hypotenuse is x sqrt 2 which means that one of the side lengths the user inputs has to be irrational and that&apos;s impossible, but I decided to make it an option anyways because I wanted to include all triangle types. This is why my code is long, because I give the option for a right isosceles triangle (45-45-90 triangle, two both legs equal while hypotenuse is x sqrt 2, meaning it&apos;s the longest side) even though it is impossible. Anyway, first of all, we need to see if the user&apos;s triangle is an isosceles triangle in the first place. I do this with a condition side 1 = side 2 OR side 2 = side 3 OR side 1 = side 3 (use the OR predicate block in the Operators category because only one of them has to be true for it to be an isosceles triangle). If this is true, then the triangle is an isosceles triangle and we analyze if it is a right isosceles triangle or if it is an isosceles triangle. If this is false, we move on to the else of the if statement, which contains the computation for scalene triangle (we don&apos;t need a separate if statement for another condition to see if the triangle is a scalene triangle because there is nothing to compare. All sides are different, and scalene is the last option, so the else section already guarantees that the user&apos;s triangle is scalene without a need for confirmation of a true condition, and all we would have to do is see if it is a right scalene or not). </comment><comment x="466" y="771.9999999999987" w="796" collapsed="false">If their triangle is an isosceles triangle, we move on to the if statements below, which determine if the triangle is a right isosceles triangle or just an isosceles triangle. The very first thing I need to do is to see which side is the longest. Credits to Ms. Ranjani for providing the logic of finding the right triangle by using the pythagorean theorem to see if it is true for the triangle! When using the pythagorean theorem, a^2+b^2 = c^2. c is the hypotenuse, or the long side, and c has to be the longest side in the theorem, so we need to see which side of the user&apos;s triangle is the longer to apply it to the pythagorean theorem correctly. I used the AND predicate block to do this, and I use a lot of combined reporter/condition blocks with predicate blocks, implementing logic and boolean algebra to find specific things. I have to compare all three sides and put each side as the &quot;greater than or equal to the other sides&quot; to see which one is greater in the user&apos;s triangle, so each if statement will essentially compare one of the sides, and once we notice one of the sides is the longer side, then we can use the pythagorean theorem in the if statement. The reason I use a greater than or equal to function to compare 1 of the sides to the other sides is because in an isosceles triangle, either the longest side is the one that isn&apos;t equal to the two other sides, or the longest side is actually the TWO longest sides because they are equal, so even if the side that is longest were one of the two equal sides, then it doesn&apos;t matter which one we use as c in the pythagorean theorem (which is typically the hypotenuse, the longest side). We need the and statement to make sure that the side being compared to the other two sides is greater than or equal to this side AND greater than or equal to this side, so we know that that side is actually the longer side. Some may think that the equilateral triangle fulfills this condition too, and it does, so some may think that for the equilateral triangle, the program will say an equilateral triangle is an equilateral triangle and isosceles triangle, but this isn&apos;t the case because we actually use an if else statement. The if action is the equilateral, and after that is done, the program in the else won&apos;t happen, and that happens to be where I put the bulk of the code (the parts that compare the other two types of triangles (isosceles and scalene) in, so it won&apos;t play twice.  That&apos;s where the if else statements come in because if we use the equal than or greater, then two if statements will actually be triggered because two of them are true, that these two sides are EQUAL to each other and are greater than the other side. So, I had to use nested if else statements. For example, when we hypothetically put side 1 as the longest side, that is the first if statement. The if is executing the pythagorean theorem, and the ELSE is the next if else statement that compares side 2 as the longest side, so I have to nest these statements. The reason is because the very moment one is executed, it executes the if, and then the program just ends there because it doesn&apos;t need to trigger anything below in its else block, and after that, it wouldn&apos;t need to trigger anything else (below is the scalene triangles). That&apos;s the beauty of this program. </comment><comment x="467" y="1051.3333333333333" w="797" collapsed="false">If one of the if conditions is true (whichever side is found the longest with the predicate blocks and boolean algebra), then we execute the pythagorean theorem below. The key here is that for each condition where I hypothetically make one side the longest, then in the if action below, it that side is truely the longest, then I put that side as the c in the pythagorean theorem so it works. That&apos;s the whole reason why I need to find the longest side, because the user is not going to tell me the longest side, and the program has to compare itself to see which side is the longest. Then, after I find c, I can simply place the other two sides as the a and b, so in the end, I have a full a^2+b^2=c^2 equation. Then it&apos;s easy sailing from here because if the pythagorean theorem equation (which is actually the condition of the nested if else statement inside the if statement where it sees the longest side) is TRUE (the pythagorean theorem is the equal predicate block, so the equation is either true or false), then I simply use a say block and tell them that their triangle is a right isosceles triangle, and if the pythagorean theorem is false, then this means their triangle isn&apos;t a right triangle (only right triangles fulfill the pythagorean theorem) and I tell them that their triangle is and isosceles triangle. In all cases, I thank them for playing. </comment><comment x="466" y="1195.166666666664" w="798" collapsed="false">If in fact the if statement in the else section of the equilateral triangle if statement is false (where the user&apos;s triangle does not have two equal sides), then this means we move to the else where we calculate scalene triangles, because we know their triangle isn&apos;t an isosceles triangle or equilateral triangle. Scalene triangles are much easier because we don&apos;t have the greater than or equal predicament. All sides are of different lengths, and only one of three sides can be the greatest, so in this example, we simply use the greater than predicate block inside an AND predicate block (both greater than statements need to be true because the longest side is greater than both sides). We also don&apos;t have to use the tree of if else statements and can simply use three if statements not contained within another, so as the program goes down, it can simply compare which if statement (only one can be true as the greatest side), and whichever one is true, then we know that that side is the greatest, and we can execute pythagorean theorem. I hypothetically put each side as the &quot;longest&quot; side, so we can see each possibility, and whichever is true means that that side is greater tthan the other two sides, and that side is the longest. </comment><comment x="469.9999999999998" y="1328.1666666666642" w="791" collapsed="false">The pythagorean theorem here is quite simple. In each hypothetical situation we set up here where one side is greater than the others, we don&apos;t need to know which side is longest. All we have to do is that in each if statement, whichever side was compared as longest is simply put as the c of the pythagorean theorem, and the other two sides (less than the longest) are put as the a and b, so we can get a full equation of a^2+b^2=c^2. Then, when the program is running, only one side is actually the longest, and when one of the if statements is finally true, then we can execute the pythagorean theorem (which is the condition of a nested if else statement) which is already set up to be correct because we place the longest side as c. So, if the pythagorean theorem is true (a true pythagorean theorem always means the triangle is a right triangle), then it executes the if action, which uses a say block and tells the user that their triangle is a right triangle, and if the pythagorean theorem isn&apos;t true, then we go to the else block, which simply tells the user that their triangle is a scalene triangle. In all circumstances, I thank the user for playing. </comment><comment x="503.3333333333335" y="1472.1666666666645" w="764" collapsed="false">At the very bottom of the very first if statement that contains essentially everything (this program is like a tree of if else statements and only one is true, and I have to do this because I have to test each and every possibility to get the triangle) is the else section, that uses a say block to tell the user that their sides don&apos;t actualy create a triangle. This if statement was where we measured the triangle inequality to see if the user&apos;s sides could create a triangle, and all three equations (I used the logical AND predicate block) had to be true to create a triangle (see above). If even one of these equations were false, then the sides can&apos;t create a triangle, and the whole condition would then be false, so we would move down to the else statement at the bottom that gives this message to the user. But, I do thank them for playing. </comment></scripts></sprite><watcher var="side_1" style="normal" x="10" y="10" color="243,118,29"/><watcher var="side_2" style="normal" x="10" y="31.000001999999995" color="243,118,29"/><watcher var="side_3" style="normal" x="10" y="52.00000399999999" color="243,118,29"/><watcher var="perimeter" style="normal" x="10" y="73.00000599999998" color="243,118,29"/></sprites></stage><hidden></hidden><headers></headers><code></code><blocks></blocks><variables><variable name="side_1"><l>5</l></variable><variable name="side_2"><l>4</l></variable><variable name="side_3"><l>3</l></variable><variable name="perimeter"><l>12</l></variable></variables></project><media name="2.5 Kyle Triangle Guesser" app="Snap! 6, https://snap.berkeley.edu" version="1"></media></snapdata>