October 2017
Beginner
318 pages
7h 26m
English
We can finish up our program here using println to throw out inputValue, which should now contain the proper conversion. Let's run this program and give some input and output to see how we did:

So, when we run our program, it asks what inputType we're going to give it. Let's give it a Fahrenheit value. Now let's say we would like to get a Celsius value as the output. Let's see what the Celsius value of 32 degrees Fahrenheit is. We see that the output result of 0. The 32 degrees Fahrenheit is 0 degrees Celsius, so that's a good sign. Let's try some more edge cases. If we attempt to convert Celsius to Celsius, we get ...
Read now
Unlock full access