**Interactive parallelogram. Click and drag points to see properties, formula adjust


A+    A−    B  
Home
Algebra
Math Games
Geometry
Private Tutors
Interactive
Trigonometry
Jobs
Teacher Resources
On Facebook



AddThis Social Bookmark Button

Temperature Converter Assignment

Create a new BlueJ class called TemperatureConverter and paste the code below inside. Compile and run the class to see what it does. Your job is to
  • 1) Make the constructor initialize the instance variable temperature.
  • 2) implement and test the convertToCelsuis() method
  • 3) implement and test the convertToFarenheit() method


TemperatureConverter class



public class TemperatureConverter{
int base = 32;
final double conversionFactor= 9.0/5.0;

double temperature;

//empty constructor
  public TemperatureConverter()
  { 
	  System.out.println("Make the constructor initalize temperature");
	  ; 
  }

  
  //@ returns celsuis conversion 
  public double convertToFarenheit(int tempToConvert){ 
	  System.out.println("Change this method to return the degrees in celsuis");
return 1;

  }  
  
   //@ returns celsuis conversion 
  public double convertToCelsuis(int tempToConvert){

  System.out.println("Change this method to return the degrees in celsuis");

  return 1;
  }
  
  
}

Top
AddThis Social Bookmark Button