Thursday, August 15, 2013

Sales Tax

#include <iostream>
using namespace std;

const double STATE_SALES_TAX=0.04;
const double COUNTY_SALES_TAX=0.02;


int main()

{
 int purchaseAmount=52;
 double stateSalesTax;
 int totalSalesTax;
 double countySalesTax;





 stateSalesTax = purchaseAmount * STATE_SALES_TAX;
 countySalesTax = purchaseAmount * COUNTY_SALES_TAX;


    totalSalesTax = stateSalesTax + countySalesTax;


  cout<<"The Total Sales Tax for the purchase is:$"<<totalSalesTax<<endl;


system("pause");
 return 0;

}

No comments:

Post a Comment