package lectures.least_privilege;
import util.annotations.WebDocuments;
import lectures.interfaces.BMISpreadsheet;
import util.trace.TraceableLog;
import util.trace.TraceableLogFactory;
import bus.uigen.ObjectEditor;
@WebDocuments({"Lectures/LeastPrivilege.pptx", "Lectures/LeastPrivilege.pdf", "Videos/LeastPrivilege.avi"})
public class ABMISpreadheetWithPublicVariables implements BMISpreadsheet {
public double height, weight, bmi; public double getWeight() {
return weight;
}
public void setWeight(double newValue) {
weight = newValue;
}
public double getHeight() {
return height;
}
public void setHeight(double newValue) {
height = newValue;
}
public double getBMI() {
return weight/(height*height);
}
public static void main (String[] args) {
ObjectEditor.edit(new ABMISpreadheetWithPublicVariables());
TraceableLog log = TraceableLogFactory.getTraceableLog();
System.out.println(log.getLog());
}
}