Originally Posted by
Adak
You want a conceptual jump, where a char variable (perhaps) is made in just one line of code, regardless of it's eventual type.
Instead of 3, 4, or 5 lines of code to get users input, you have just one, probably in a function just for getting users input. Think of your variables for this, like a spoon. You don't have a different spoon for every type of soup - you just use the same spoon, over and over.
And of course, a new variable to hold all the output, regardless of choices the user makes. Again, a single function for all output.
Perhaps one more function for all the computations. Let's say you have a function compute(). One parameter for that function, would be the users choice, so compute(parameter1) could be the users choice of what he/she wants to convert.
Perhaps the call compute(1) means convert Fahrenheit to Celsius.
Another parameter to compute() might be a string to hold the result of all the computations.