/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package volcanorobotapplication;

/**
 *
 * @author Lee Leong
 */
public class VolcanoRobot {
    String status;
	int speed;
	float temperature;

	void checkTemperature(){
		if (temperature > 600) {
			status = "returning home";
			speed = 6;
		}
	}

	void showAttributes() {
		System.out.println ("Status: " + status);
		System.out.println ("Speed: " + speed);
		System.out.println ("Temperature: " + temperature);
	}

	void setTemperature (float mytemperature) {
		temperature = mytemperature;

	}

}
