Just please keep in mind that I don't want to use techniques that haven't been covered yet.
-A Temperature class.
-Two parameters, a temperature value (floating-point) number and a character for the scale, either 'C' or 'F'.
- Four constructor methods, one for each instance variable (assume zero degrees if no value isspecified and C if no scale is specified, one with two parameters for the two instance variables, and a default constructor (set to zero degrees Celsius).
- Two accesor methods, one to return the temperature in C and one to return the temperature in F, using the formulas from the textbook, and round to the nearest tenth of a degree.
- Three reset methods, one to set the value, one to set the scale ('F' or 'C') and one to set both.
-Three comparison methods, one to test whether two temperatures are equal, one to test whether one temperature is greater than another, and one to test whether one temperature is less than another.
-A driver program that tests all the methods.
-Use each of th constructors, include at least one true and one false case for each of th comparison methods, and test at least the following temperature equalities: 0.0 degrees C = 32.0 degrees F, -40.0 degrees C = -40.0 degrees F, and 100.0 degrees C = 212 degrees F.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL