#include <iostream>
usingnamespace std;
int main() {
double taxRate;
double itemPurchase;
double theTotal;
double theTax;
//get the tax of the item
cout << "Current state taxrate: " << endl;
cin >> taxRate;
//get the amount of the item going to be purchased
cout << "How much is your item without taxes: " << endl;
cin >> itemPurchase;
//get the tax and then add to get total
cout << "The tax for this item will be: " << itemPurchase*taxRate / 100.00 << endl;
cin >> theTax;
//additions to get the total
cout << "Calculating.... " << theTax + itemPurchase;
cin >> theTotal;
//the total
cout << "Your total is: " << theTotal << endl;
return 0;
}
what about this one?
This one when its about to say the total is it just closes.
This ONE seems to work fine also but it closes after it tells me the total.
What i want to create is like a receipt program.
which will say Item: 300
which will say Taxes: 24.75
________
which will say Total: 324.75