forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Concept exercise review: lasagna (JuliaLang#433)
* Make lasagna hint appear * Fix accidental double word * Add some more hints * Apply suggestions from code review Co-authored-by: Sascha Mann <git@mail.saschamann.eu>
- Loading branch information
1 parent
2bd5e82
commit 0f23b29
Showing
2 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
# General | ||
# Hints | ||
|
||
You will need to define [functions][functions] and use [arithmetic operators][arithmetics]. | ||
## General | ||
|
||
- You will need to define [functions][functions] and use [arithmetic operators][arithmetics]. | ||
|
||
## 1. Calculate the preparation time in minutes | ||
|
||
- Use the [`times` arithmetic operator][arithmetics] to multiply the argument by `2`. | ||
|
||
## 2. Calculate the remaining oven time in minutes | ||
|
||
- Use the [`minus` arithmetic operator][arithmetics] to subtract the argument from `60`. | ||
|
||
## 3. Calculate the total working time in minutes | ||
|
||
- Reuse the `preptime` function defined in the first step. | ||
- Use the [`plus` arithmetic operator][arithmetics] to add the return value of `preptime` to the argument. | ||
|
||
[functions]: https://docs.julialang.org/en/v1/manual/functions/ | ||
[arithmetics]: https://docs.julialang.org/en/v1/manual/mathematical-operations/#Arithmetic-Operators-1 |
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