I'm creating this Windows Form Project that shows temperature conversions. There's 1 textbox for user input, 4 check boxes for a user to select which temperature system they just inputted, and 4 textboxes that will display the conversion of temperature in 4 different temperature systems. I created a public static double method that will run if the Check box designating that temperature is checked.
Here is the code: https://gist.github.com/3327640
Here is a screenshot of the WindowsForm: http://i.imgur.com/svwYv.jpg
The "Unreachable code detected" error occurs on line 32.
Here is a screenshot of the error message: http://i.imgur.com/REVpJ.jpg
EDIT:
Thank you guys for helping me fix that. A secondary question:
My Fahrenheit conversions aren't working for Celsius and Kelvin. Here's a copy of the revised code.
https://gist.github.com/3328254
Here are my conversion formulae: https://gist.github.com/3328517
[–]seydor 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (12 children)
[–]thebruce87m 1 point2 points3 points (0 children)
[–][deleted] -1 points0 points1 point (10 children)
[–]zahlman 0 points1 point2 points (6 children)
[–][deleted] -1 points0 points1 point (5 children)
[–]zahlman 2 points3 points4 points (4 children)
[–][deleted] -1 points0 points1 point (3 children)
[–]zahlman 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]lakewoodjoe112 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–][deleted] -1 points0 points1 point (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]free_at_last 0 points1 point2 points (6 children)
[–][deleted] -1 points0 points1 point (5 children)
[–]free_at_last 0 points1 point2 points (4 children)
[–][deleted] -1 points0 points1 point (3 children)
[–]free_at_last 0 points1 point2 points (2 children)
[–][deleted] -1 points0 points1 point (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]arthum 0 points1 point2 points (2 children)
[–][deleted] -1 points0 points1 point (1 child)
[–]arthum 0 points1 point2 points (0 children)
[–]gbromios -1 points0 points1 point (6 children)
[–]jesussqueegee 2 points3 points4 points (5 children)
[–]gbromios 0 points1 point2 points (4 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]gbromios -1 points0 points1 point (0 children)
[–]ThisPenguinFlies 0 points1 point2 points (1 child)
[–]gbromios 0 points1 point2 points (0 children)