int basePrice = _quantity * _itemPrice; discountLevel = getDiscountLevel(); double finalPrice = discountedPrice (basePrice, discountLevel);

int basePrice = _quantity * _itemPrice; double finalPrice = discountedPrice (basePrice);
For more information see page 292 of Refactoring