// Purchase #include using namespace std; int main() { int quantity; double cost, subtotal, tax, total; cout<<"Enter cost of item: "; cin>>cost; // user types in cost cout<<"Enter quantity: "; cin>>quantity; subtotal = cost * quantity; tax = subtotal * .04; //tax rate varies between states total = subtotal + tax; cout<<"Total cost = $"<