Thanks.
Printable View
Thanks.
First I would use two constructors, one to use as a default (F scale, 0 degrees), and one to override (either F or C scale, 0 degrees or -17 degrees). Also your going to need some if-conditionals to check if the scale is F or C, and if the range is correct for the problem.
Judging by the 'f' or 'F', 'c' or 'C', part, your going to need .toLowerCase() method in there somewhere. Obviously your going to need two input variables, one to hold the scale and one to hold the reading, and going to need to pass those variables to your constructor(s).