You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.8 KiB
38 lines
1.8 KiB
3 years ago
|
# Hints
|
||
|
|
||
|
## General
|
||
|
|
||
|
- An [integer value][integers] can be defined as one or more consecutive digits.
|
||
|
|
||
|
## 1. Define the expected oven time in minutes
|
||
|
|
||
|
- You need to define a [method][methods] without any arguments.
|
||
|
- You need to return an [integer][integers].
|
||
|
|
||
|
## 2. Calculate the remaining oven time in minutes
|
||
|
|
||
|
- You need to define a [method][methods] with a single parameter.
|
||
|
- You have to [explicitly return an integer][return] from a method.
|
||
|
- The method's parameter is an [integer][integers].
|
||
|
- You can use the [mathematical operator for subtraction][operators] to subtract values.
|
||
|
|
||
|
## 3. Calculate the preparation time in minutes
|
||
|
|
||
|
- You need to define a [method][methods] with a single parameter.
|
||
|
- You have to [explicitly return an integer][return] from a method.
|
||
|
- The method's parameter is an [integer][integers].
|
||
|
- You can use the [mathematical operator for multiplicaton][operators] to multiply values.
|
||
|
|
||
|
## 4. Calculate the elapsed time in minutes
|
||
|
|
||
|
- You need to define a [method][methods] with two parameters.
|
||
|
- You have to [explicitly return an integer][return] from a method.
|
||
|
- The method's parameter is an [integer][integers].
|
||
|
- You can [invoke][invocation] one of the other methods you've defined previously.
|
||
|
- You can use the [mathematical operator for addition][operators] to add values.
|
||
|
|
||
|
[methods]: https://docs.microsoft.com/en-us/dotnet/csharp/methods
|
||
|
[return]: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/return
|
||
|
[operators]: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/arithmetic-operators#addition-operator-
|
||
|
[integers]: https://docs.microsoft.com/en-us/dotnet/api/system.int32?view=netcore-3.1#instantiating-an-int32-value
|
||
|
[invocation]: https://docs.microsoft.com/en-us/dotnet/csharp/methods#method-invocation
|