Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions exercises/concept/freelancer-rates/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Discounts are modeled as fractional numbers representing percentages, for exampl

## 1. Calculate the daily rate given an hourly rate

Implement a function called `daily_rate` to calculate the daily rate given an hourly rate as a parameter.
Implement a function called `daily_rate` to calculate the daily rate given an hourly rate as an argument.
The contract defines that a day has 8 billable hours.

```cpp
Expand All @@ -27,7 +27,7 @@ The returned daily rate should be of type `double`.
## 2. Calculate a discounted price

Implement a function `apply_discount` to calculate the price after a discount.
It should accept two parameters: the original price and the discount rate in percent.
It should accept two arguments: the original price and the discount rate in percent.

```cpp
apply_discount(150, 10)
Expand All @@ -39,7 +39,7 @@ The returned value should always be of type `double`, not rounded in any way.
## 3. Calculate the monthly rate, given an hourly rate and a discount

Implement a `monthly_rate` function to calculate the discounted monthly rate.
It should have two parameters, an hourly rate and the discount in percent.
It takes two arguments, an hourly rate and the discount in percent.

```cpp
monthly_rate(77, 10.5)
Expand Down
Loading