package lectures.types.math;
import util.annotations.WebDocuments;

import bus.uigen.ObjectEditor;

@WebDocuments({"Lectures/TypesMath.pptx", "Lectures/TypesMath.pdf", "Videos/TypesMath.avi"})
public class AnIntBMISpreadsheet implements IntBMISpreadsheet {
    int height;
    int weight; 
    public AnIntBMISpreadsheet() { }    
    public AnIntBMISpreadsheet(
            int theInitialHeight, int theInitialWeight) {
        setHeight(theInitialHeight);
        setWeight(theInitialWeight);
    }
    public int getWeight() {
        return weight;
    }
    public void setWeight(int newValue) {
        weight = newValue;
    }   
    public int getHeight() {
        return height;
    }
    public void setHeight(int newValue) {
        height = newValue;
    }   
    public int getBMI() {
        return weight/(height*height);
    }
    public static void main(String[] args) {
        ObjectEditor.edit(new AnIntBMISpreadsheet ((int) 1.77, 75));
    }
    
}