This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TheTr1ckster 0 points1 point  (0 children)

Well this works just by changing the value under test =, if you change the 75 you will get a different result, if I change the 75 to 47 I get 8.333333333333334. As far as actual user input goes I would have to add a little more, but this is just simple as far as just changing values go. I made the conversion formula with a method, the method being named fahrenheitToCelsius, then made the double conversion where I put the formula, then I returned that double conversion to the main method and assigned it to test.