951 B
951 B
Hints
General
- You will need to define functions and use arithmetic operators.
1. Store the expected bake time in a constant
- Define a const to store this value.
2. Calculate the preparation time in minutes
- Use the
timesarithmetic operator to multiply the argument by2.
3. Calculate the remaining oven time in minutes
- Use the
minusarithmetic operator to subtract the argument from60.
4. Calculate the total working time in minutes
- Reuse the
preparation_timefunction defined in the first step. - Use the
plusarithmetic operator to add the return value ofpreparation_timeto the argument.