Files
Alexander Heldt 70cfb196b8 lasagna
2025-10-29 20:09:37 +01:00

42 lines
1.6 KiB
Markdown

# Hints
## General
- An [int value][ints] can be defined as one or more consecutive digits.
- [String][string] literals are a sequence of characters surrounded by double quotes.
## 1. Define the expected oven time in minutes
- You need to define a [function][functions] without any arguments.
- You need to return an [int][ints].
## 2. Calculate the remaining oven time in minutes
- You need to define a [function][functions] with a single argument.
- You have to return an int from a function.
- The function's argument is an [int][ints].
- You can use the [mathematical operator for subtraction][ints] to subtract values.
## 3. Calculate the preparation time in minutes
- You need to define a [function][functions] with a single argument.
- You have to return an int from a function.
- The function's argument is an [int][ints].
- You can use the [mathematical operator for multiplication][ints] to multiply values.
## 4. Calculate the total working time in minutes
- You need to define a [function][functions] with two arguments.
- You have to return an int from a function.
- The function's argument is an [int][ints].
- You can invoke one of the other functions you've defined previously.
- You can use the [mathematical operator for addition][ints] to add values.
## 5. Create a notification that the lasagna is ready
- You need to define a [function][functions] without any arguments.
- You need to return a [string][string].
[functions]: https://gleam.run/book/tour/functions.html
[ints]: https://gleam.run/book/tour/ints-and-floats.html
[string]: https://gleam.run/book/tour/strings.html