I am trying to calculate a discount based on amount bought. Can someone tell me why this doesn't work?
Code:
if (concreteAmount<=500)
concreteDiscount=.02;
else if (concreteAmount>500 && concreteAmount<9001)
concreteDiscount=.04;
else if (concreteAmount>9000 && concreteAmount<15001)
concreteDiscount=.05;
else if (concreteAmount>15000)
concreteDiscount=.09;
else concreteAmount<0;
cout<< "Error, please try again."
Comment