<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div>Also, another goal of doing it was to see if I could using a class. Which worked. I apologize for the delay, apparently as a Junior our HS does not trust us with EMAIL which of all things kids probably don't use for messaging.&nbsp;<br>
<br>
<div class="acompli_signature">Sent from <a href="https://aka.ms/sdimjr">Outlook Mobile</a></div>
<br>
</div>
<br>
<br>
<br>
<div class="gmail_quote">On Tue, Dec 15, 2015 at 12:35 PM -0800, &quot;Gage Morgan via swift-users&quot;
<span dir="ltr">&lt;<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>&gt;</span> wrote:<br>
<br>
</div>
<div>
<div>I understand that mine is a bit more complicated than it needs to be. It works, that's good enough for me. It gives proper values. I knew SOMEONE would have an issue with the &quot;breaking machine,&quot; and I realized it could not be reached before typing it.
 I put it in there as a joke, nothing more (I've done worse in actual C).&nbsp;</div>
<div><br>
</div>
<div>As for types and other stuff, I will acknowledge that there could possibly be up to ten different revisions with much simpler code. I prefer to write things out, which is why there's not as many abstract concepts as some would like. I did as a test, just
 to see if it could be done. And the answer is yes, and that's good enough for me. The next time I plug in a formula I will consider these, but may not use them.&nbsp;</div>
<div><br>
</div>
<div>I understand your above points, but there are of course 14000 different ways that you could do it. Don't overthink it. I did it the way I did it because I could understand it, no intentions to be .selfless or take a .selfie whatsoever (THAT WAS A JOKE,
 FOR THE LOVE OF CHRIST).&nbsp;</div>
<div><br>
</div>
<div>There are many ways you can dumb it down. Unfortunately, abstraction and I don't play nice. So it would make sense for me to have written it out step-by-step. Look at the calculations given by the second revision. They are unrounded versions of the CDC
 website's results, are they not?<br>
<br>
<div class="x_acompli_signature">Sent from <a href="https://aka.ms/sdimjr">Outlook Mobile</a></div>
<br>
</div>
<br>
<br>
<br>
<div class="x_gmail_quote">On Mon, Dec 14, 2015 at 9:50 PM -0800, &quot;Gage Morgan via swift-users&quot;
<span dir="ltr">&lt;<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>&gt;</span> wrote:<br>
<br>
</div>
<div>
<div>And a more polished version:</div>
<div>https://gist.github.com/MGageMorgan/c2166174be878e9cea78<br>
<br>
<div class="x_x_acompli_signature">Sent from <a href="https://aka.ms/sdimjr">Outlook Mobile</a></div>
<br>
</div>
<br>
<br>
<br>
<div class="x_x_gmail_quote">On Mon, Dec 14, 2015 at 7:20 PM -0800, &quot;Gage Morgan via swift-users&quot;
<span dir="ltr">&lt;<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>&gt;</span> wrote:<br>
<br>
</div>
<div>
<div>For most languages I try out, my own version of &quot;Hello World!&quot; is a BMI calculator. Swift has passed, I encourage you to try it out.&nbsp;</div>
<div><br>
</div>
<div>There are two methods called towards the end of file:</div>
<div>1) bmi.pounds(weight, height) - Replace numbers inside with your own if you want to test out in US Customary units.&nbsp;</div>
<div><br>
</div>
<div>2) bmi.kilograms(weight, height) - Replace numbers inside with your own if you want to test out in Metric units used everywhere outside the US.&nbsp;</div>
<div><br>
</div>
<div>You already get the gist, the bits can be found here:</div>
<div><a dir="ltr" href="https://gist.github.com/anonymous/9284017644567c29c7f8">https://gist.github.com/anonymous/9284017644567c29c7f8</a></div>
<div><br>
</div>
<div>If there's a bug please let me know, but it works in IBM's Sandbox.&nbsp;</div>
<div>(Yes, ALL code was written by me without help. Very close to C, just a bit laid back.)<br>
<div class="x_x_x_acompli_signature">--MGage--</div>
<br>
</div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=-2FcgwiRAxmHDdptrhrsAJKMBtNqQpWV-2BwUfjpvH9AIaqjnhyAGexqc0VWZ-2FK1H-2FkGVDsXKSHiBv9fvXkIuETx-2BsYI7UH9dtSLZHVMsRUSdq8tdVuHd3VZkDMS0F6Ot0-2B8G8JEpylrXClVZYmfgnhasUDJdfhT4-2BoxDpq0UHaCeK-2B1d-2BH1Nooe0Enj-2B7ydFah-2BvcO6Ip6krW5cCq3tKV36a3uP2HIluCrEHQMtOHRtZNY-3D" alt="" width="1" height="1" border="0" style="height:1px!important; width:1px!important; border-width:0!important; margin-top:0!important; margin-bottom:0!important; margin-right:0!important; margin-left:0!important; padding-top:0!important; padding-bottom:0!important; padding-right:0!important; padding-left:0!important">
</div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=-2FcgwiRAxmHDdptrhrsAJKMBtNqQpWV-2BwUfjpvH9AIap8Po1BwNTe04tllOZT4D22ErNKO-2FdznI1-2F8zmvVWbePvXvDzrIZPf53JXE1JX9Ema1IVBdzY8SJrHjhFD-2FrDuWN9y9Ro5elGiZEcW4-2F3IEoJkWgT5xDuqaWwDWWBkRFYNE9Whg-2BG-2BB8L-2BciaobcokOGxCviXjH1jGhnApo-2F2Dw9SjONXJyD5argMgygiQ2fWs-3D" alt="" width="1" height="1" border="0" style="height:1px!important; width:1px!important; border-width:0!important; margin-top:0!important; margin-bottom:0!important; margin-right:0!important; margin-left:0!important; padding-top:0!important; padding-bottom:0!important; padding-right:0!important; padding-left:0!important">
</div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=-2FcgwiRAxmHDdptrhrsAJKMBtNqQpWV-2BwUfjpvH9AIarYX9ro9D8nLhnpPIP-2FNWnA5sT8Pc7cWlp0Q9v-2FYsU56AR4nCQIrOBrejQPAPhOcDIHAnWotHDwb3xCkbbntEaNBxyjJ2lcbpGLkzP2Rd5nHRDmDSQ1IeG74Lsr0UomMAaPFGqT-2B3yMYiP-2Bd0CUFgaEvMXLF5sDI4rS1mz4JDuTzH9RURiFOoQC5md2Gt5Zg2o-3D" alt="" width="1" height="1" border="0" style="height:1px!important; width:1px!important; border-width:0!important; margin-top:0!important; margin-bottom:0!important; margin-right:0!important; margin-left:0!important; padding-top:0!important; padding-bottom:0!important; padding-right:0!important; padding-left:0!important">
</div>
</body>
</html>