Discount Strategy Assignment for Advanced Java