// Mr. Minich
// Comp Sci Using C++
// Ch. 4 Demo Program #3
// January 30, 2000
// Purpose - to illustrate the use of an assignment statement
#include <iostream.h>
int main()
{
const double PA_SALES_TAX = 0.06; // the PA sales tax rate
double price = 2.0; // price of a purchase
int quantity = 5; // the quantity of items purchased
double totalCost = 0.0; // the total cost of a purchase
totalCost = price * quantity * PA_SALES_TAX; // computing the total cost of the purchased items
cout << "The price is " << price << "." << endl;
cout << "The quantity is " << quantity << "." << endl;
cout << "The PA sales tax rate is " << PA_SALES_TAX << "." << endl;
cout << "The total cost is " << totalCost << "." << endl;
return 0;
}// end of main