lasagna
This commit is contained in:
24
lasagna/src/lasagna.gleam
Normal file
24
lasagna/src/lasagna.gleam
Normal file
@@ -0,0 +1,24 @@
|
||||
// Please define the expected_minutes_in_oven function
|
||||
pub fn expected_minutes_in_oven() -> Int {
|
||||
40
|
||||
}
|
||||
|
||||
// Please define the remaining_minutes_in_oven function
|
||||
pub fn remaining_minutes_in_oven(time_in_oven: Int) -> Int {
|
||||
40 - time_in_oven
|
||||
}
|
||||
|
||||
// Please define the preparation_time_in_minutes function
|
||||
pub fn preparation_time_in_minutes(layers: Int) -> Int {
|
||||
layers * 2
|
||||
}
|
||||
|
||||
// Please define the total_time_in_minutes function
|
||||
pub fn total_time_in_minutes(layers: Int, time_in_oven: Int) -> Int {
|
||||
preparation_time_in_minutes(layers) + time_in_oven
|
||||
}
|
||||
|
||||
// Please define the alarm function
|
||||
pub fn alarm() -> String {
|
||||
"Ding!"
|
||||
}
|
||||
Reference in New Issue
Block a user