double computeCost( double price, int quantity ) { // Compute the cost of purchase double cost = price * quantity; // Compute and add taxes cost *= (1 + TAX_RATE); // Return the cost return cost; }