Monday, July 27, 2009

Hey do anyone know how to write this program in java programing. i need some out line for the code please.?

a temperature class that has two instance variables: a temperature value double and a character for the scale, either c for Celsius or F for Fahrenheit. The classe should have four constructor methods: one for each instance variable(assume zero degrees if no value is specified and Celsius if no scale is specified). One with two parameter for the two instance variable, and a no-argument constructor. include the following (10 two accessor methods to return the temperature- one to return the degree of Celsius, the other to return the degree Fahrenheit – use the this fomula to write the two methods and round to nearest tenth of a degree:


DegreeC= 5(degree-32)/9


degree=(9(degree)/5)+32;


2. three mutator methods: one to set the value, one to set the scale( F or C) and one to set both ;


3. three comparison methods, and equals method to test whether two temperature are equal, one method to test whether one temperature is greater than another

Hey do anyone know how to write this program in java programing. i need some out line for the code please.?
Done sir,


You can search to solved your probleam from


http://expert.userstyle.com/


No comments:

Post a Comment