We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 835b7a7 commit 5d37afcCopy full SHA for 5d37afc
exercises/concept/freelancer-rates/.meta/exemplar.cpp
@@ -19,9 +19,8 @@ int monthly_rate(double hourly_rate, double discount) {
19
int workdays_per_month{22};
20
double per_month{per_day * workdays_per_month};
21
double after_discount{apply_discount(per_month, discount)};
22
- int rounded_up{std::ceil(after_discount)};
23
-
24
- return rounded_up;
+ // Round up with std::ceil
+ return std::ceil(after_discount);
25
}
26
27
// days_in_budget calculates the number of workdays given a budget, hourly rate,
0 commit comments