lasagna
This commit is contained in:
42
lasagna/HINTS.md
Normal file
42
lasagna/HINTS.md
Normal file
@@ -0,0 +1,42 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user