diff --git a/solutions/go/lasagna/1/lasagna.go b/solutions/go/lasagna/1/lasagna.go new file mode 100644 index 0000000..a2315fe --- /dev/null +++ b/solutions/go/lasagna/1/lasagna.go @@ -0,0 +1,23 @@ +package lasagna + +// TODO: define the 'OvenTime' constant +const OvenTime = 40 + +// RemainingOvenTime returns the remaining minutes based on the `actual` minutes already in the oven. +func RemainingOvenTime(actualMinutesInOven int) int { + return OvenTime - actualMinutesInOven + panic("RemainingOvenTime not implemented") +} + +// PreparationTime calculates the time needed to prepare the lasagna based on the amount of layers. +func PreparationTime(numberOfLayers int) int { + return numberOfLayers * 2 + panic("PreparationTime not implemented") +} + +// ElapsedTime calculates the time elapsed cooking the lasagna. This time includes the preparation time and the time the lasagna is baking in the oven. +func ElapsedTime(numberOfLayers, actualMinutesInOven int) int { + totalPreparationTime := PreparationTime(numberOfLayers) + return totalPreparationTime + actualMinutesInOven + panic("ElapsedTime not implemented") +} \ No newline at end of file