Quote:
|
Originally Posted by DaWei
My suggestion for your next step would be to enhance the user interface. Have the user enter a number followed by (or appended with) the appropriate letter. For example, 100C or 100 C would be converted to the appropriate fahrenheit value. One thing to remember with users is that they are careless, make typos, go to sleep with their head on the keyboard, or maliciously try to break your program. Input validation is therefore very important for robust programming.
|
Thanks for the suggestion, but this app is done. I mean, I'll keep it around for possible future testing of other Java features and whatnot, but assignment-wise, this is completed.
It's true that the temperature and the letter for either Fahrenheit or Celsius conversion should be entered on the same line. Well, it should be possible to enter the number and the letter on the same line. I'm not sure how I could accomplish that but I'll see what I can do.
Thanks