//Amari Mosley CSC5 Chapter 2, P. 81, #3
//
/**************************************************************
*
* SALES TAX COMPUTATION
* ____________________________________________________________
* This program will compute the total sales tax on a $52 purchase.
* Computation is based on the formula:
* StateTaxAmount = PurchaseAmount * StateTax;
CountyTaxAmount = PurchaseAmount * CountyTax;
SalesTax = StateTaxAmount + CountyTaxAmount;
* ___________________________________________________________
* INPUT
*
* PurchaseAmount : The Amount of Money the Purchase is worth
StateTax : The Tax Percentage the State Imposes
CountyTax : The Tax Percentage the County Imposes
*
* OUTPUT
* StateTaxAmount : Total amount of state taxes being paid
CountyTaxAmount : Total amount of county taxes being paid
SalesTax : The Total Amount of Taxes
*
**************************************************************/
#include <iostream>
#include <iomanip>
using namespace std;
// Defining Main Function
int main()
{
// Defining double Variables
double PurchaseAmount, StateTax, CountyTax, StateTaxAmount, CountyTaxAmount, SalesTax;
// Assigning Values of Variables
PurchaseAmount = 52;
StateTax = .04;
CountyTax = .02;
//Computing Product of Values
StateTaxAmount = PurchaseAmount * StateTax;
CountyTaxAmount = PurchaseAmount * CountyTax;
SalesTax = StateTaxAmount + CountyTaxAmount;
//Final Generation Display
cout << "The total taxes on the purchase comes out to " << SalesTax << " dollars. ";
return 0;
}