CashRegister class
npublic double netPrice
n   (double grossPrice,
n    double taxRate,
n    double discountRate){
n double tax;
n double discount;
n tax = grossPrice * taxRate;
n discount = grossPrice * discountRate;
n return grossPrice + tax - discount;
n}
ntax and discount are local automatic variables.