Last active
May 11, 2024 01:57
-
-
Save filipearray/6fb08dd98f2c7c8ac48a9e865323396f to your computer and use it in GitHub Desktop.
Gopher's Gorgeous Lasagna
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package lasagna | |
const OvenTime = 40 | |
const layerPreparationTime = 2 | |
// RemainingOvenTime retorna os minutos restantes com base nos minutos `atual` já no forno. | |
func RemainingOvenTime(actualMinutesInOven int) int { | |
remainingOvenTime := OvenTime - actualMinutesInOven | |
return remainingOvenTime | |
panic("RemainingOvenTime not implemented") | |
} | |
// PreparationTime calcula o tempo necessário para preparar a lasanha com base na quantidade de camadas. | |
func PreparationTime(numberOfLayers int) int { | |
preparationTime := layerPreparationTime * numberOfLayers | |
return preparationTime | |
panic("PreparationTime not implemented") | |
} | |
// ElapsedTime calcula o tempo decorrido cozinhando a lasanha. Este tempo inclui o tempo de preparação e o tempo que a lasanha está assando no forno. | |
func ElapsedTime(numberOfLayers, actualMinutesInOven int) int { | |
elapsedTime := (numberOfLayers * 2) + actualMinutesInOven | |
return elapsedTime | |
panic("ElapsedTime not implemented") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment