It doesn't display the cost correctly. It just calculates the total x without taking into account the discount. What would I have to change/add to get the total cost after it calculates the discount?
cout<<"Total cost " << cost;
cost=(cost * 50);
discount = (50 - cost);
if (cost < 5)
cost=(cost * 50);
else if (cost > 5 && cost < 10);
cost=(50 - (50 * 0.2));
else if (cost > 10 && cost < 20)
cost=(50 - (50 * 0.3));
else if (cost > 20 && cost < 30)
cost=(50 - (50 * 0.4));
else if (cost > 30);
cost=(50 -(50 * 0.5));