Graphing
Calculator
Math
Worksheets
Scientific
Calculator
Chart
Maker


Home
Graphing Calc
Algebra
Fun Games
Geometry
Interactive
Trigonometry
Scientific Calc
Home
Graphing Calc
Algebra
Fun Games
Geometry
Interactive
Trigonometry
Scientific Calc

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;
  }
  
  
}