// compute tax function

#include <iostream>
#include <cstdlib>
using namespace std;

double computeTax(double basePrice);
const double TAX_RATE = 0.06;

int main()
{
	double price = 0;
	double tax = 0;

	cout << "Enter a price: ";
	cin >> price;

	tax = computeTax(price);
	totalPriceWithTax = price + tax;

	cout << "The total price is " << totalPriceWithTax << endl;
	
	system("pause");
	return 0;
}// end of main

double computeTax(double basePrice)
{
	double taxAmount = 0.0;

	taxAmount = basePrice * TAX_RATE ;
			
	return taxAmount;
}// end of computeTax


