// Class and method stubs for Problem1. Recall that methods that require 
// return values are given dummy return values. Compile and run this
// program to ensure that it is a proper collection of stubs.

// In some places we've provided comments to help you. In many places you 
// need to provide comments! We've given various hints, below.
// updated on 4/11/04: 3 reset methods now have parameters

public class Problem1 {
    
    public static void main(String[] args) {

    }

    // other methods, if needed
}

class Temperature {
    // the 2 fields ("parameters") that Savitch requires. Delete
    // this comment before submitting your work.
    private double value; // temperature value
    private char type;    // either 'C' for Celsius or 'F' for Fahrenheit
    
    // additional fields: comment these to the right of each...delete
    // this comment after you have properly commented these fields:
    private static final char CELSIUS = 'C';
    private static final char FAHRENHEIT = 'F';
    private static final double DEFAULT_DEGREE = 0.0;
    private static final char DEFAULT_TYPE = CELSIUS;
    
    // Constructors:

    public Temperature() {
    }
    
    public Temperature(double value) {
    }
    
    public Temperature(char type) {
    }
    
    public Temperature(double value, char type) {
    }
    
    // Accessors:

    public double getCelsius() {
	return 0.0;
    }
    
    public double getFahrenheit() {
	return 0.0;
    }

    // Reset methods:

    public void resetValue(double value) {
    }

    public void resetType(char type) {
    }

    public void reset(double value, char type) {
    }

    // Compare methods:

    public int compareTo(Temperature otherT) {
	return 0;
    }

    public boolean isGreaterThan(Temperature otherT) {
	return false;
    }

    public boolean isLessThan(Temperature otherT) {
	return false;
    }
    
    // Utility methods:
    public String toString() {
	return null;
    }
    
    private static boolean checkType(char type) {
        return false;
    }

    private static double round(double value) {
	return 0.0;
    }
    
    // Additional methods (write and use if needed)

}
