/**********************************************************************************
* PROGRAMMED BY : DAISY CONTRERAS
* CLASS : CSC 5
* SECTION : MW 2:20-5:30PM
* ASSIGNMENT : CHAPTER 2 QUESTION #3
*********************************************************************************/
#include <iostream>
#include <string>
using namespace std;
/**********************************************************************************
*
* COMPUTE A TOTAL AFTER SALES TAX
* ________________________________________________________________________________
* This program computes the total of county tax and sales tax and adds the result
* to a purchase. The end result is the total of a sale with taxes included.
* ________________________________________________________________________________
*
*INPUT
* state_sales_tax : The percentage of tax from the state
* county_sales_tax : The percentage of tax from the county
* total_sales_tax : The sum total from both the county tax and the state tax
* purchase : The purchase total from a sale transaction
* after_sales_tax : The total of a sale that is included with the state and
* county sales tax.
*
* OUTPUT
* after_sales_tax : The total of the purchase with taxes included
* *******************************************************************************/
int main()
{
float state_sales_tax; //INPUT - percent of the state's sales tax
float county_sales_tax; //INPUT - percent of the county's sales tax
float total_sales_tax; //INPUT - percent of both state and county sales tax added
float purchase; //INPUT - total purchase without taxes
float after_sales_tax; //INPUT - total purchase with taxes added
state_sales_tax = 0.04;
county_sales_tax = 0.02;
total_sales_tax = 0.06;
purchase = 52;
after_sales_tax = purchase + (purchase * total_sales_tax);
cout << after_sales_tax << endl;
return 0;
}