public class Lasagna {
public static int expectedMinutesInOven(){
return 40;
}
public static int remainingMinutesInOven(int actual){
int expected = expectedMinutesInOven();
int result = expected-actual;
return result;
}
public static int preparationTimeInMinutes(int layers){
int preptime = layers*2;
return preptime;
}
public static int totalTimeInMinutes(int layer, int minutes){
int prep = preparationTimeInMinutes(layer);
int result = prep + minutes;
return result;
}
}
This code works