Sales tax calculator

This program will calculate sales tax. It is currently set to use the MA sales tax of 6.25% but if you edit the code you can change it to another state.

Screenshot of program:
http://i.imgur.com/pMGKX.png

Raw code:
#include<iostream>
using namespace std;

int main()
{
float num1;
cout<<"\nMA Sales Tax Calculator\n\nThis program will adjust prices for the \ncurrent Massachusetts sales tax of 6.25%\n\n";
cout<<"Please enter the price you want to calculate tax for. Do not use the $ sign.\n\n";
cin>>num1;
cout<<"\nThe amount of tax paid is: $";
cout<<(num1/100)*6.25<<endl;
cout<<"\nYour new total is: $";
cout<<((num1/100)*6.25)+num1<<endl<<endl;
cout<<"Press 1 and then ENTER to exit: ";
cin>>num1;
return 0;
}
Topic archived. No new replies allowed.