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 4668633 commit 347e7b9Copy full SHA for 347e7b9
exercises/tiered_pricing/solutions/mperezi/src/main/java/tv/codely/checkout/TieredPricing.java
@@ -2,12 +2,13 @@
2
3
public class TieredPricing {
4
5
- private static final double UNIT_PRICE = 299.0;
+ private static final double FIRST_TIER_UNIT_PRICE = 299.0;
6
+ private static final double SECOND_TIER_UNIT_PRICE = 239.0;
7
8
public double totalPrice(int subscriptions) {
9
if (subscriptions < 3) {
- return subscriptions * UNIT_PRICE;
10
+ return subscriptions * FIRST_TIER_UNIT_PRICE;
11
}
- return 717.0;
12
+ return subscriptions * SECOND_TIER_UNIT_PRICE;
13
14
0 commit comments