#include<iostream>
using namespace std;

int main()
{
	int gallons = 25;         // gallons of gas to be purchased
	double gas_price = 1.29;  // price of gas per gallon
	double tax = 8.6;         // percent tax
	double discount = 3;      // percent discount
	double total_cost;

	total_cost = ((1.0 - (discount/100.0)) * (gallons*gas_price)) * (1 + tax/100.0);

	cout << "The price of " << gallons << " gallons of gas at $" << gas_price;
	cout << " per gallon \nwith a " << discount << "% discount and " << tax;
	cout << "% sales tax is $";

	cout.precision(2);
	cout.setf(ios_base::fixed, ios_base::floatfield);

	cout << total_cost << "\n\n";

	return 0;
}