#include #include using namespace std; int main() { // ************** declaration statements *********** double numGallons = 0; // # of gallons of gas purchased by customer const double GAS_PRICE = 3.00; // price per gallon of gas const double GAS_TAX = 0.33; // flat tax per gallon of gas int numBananas = 0; // # of bananas purchased by customer const double BANANA_PRICE = 0.50; // price per banana double totalPrice = 0.0; // customer's total price // ************** user input *********************** cout << "Please enter the number of gallons: "; cin >> numGallons; cout << "Please enter the number of bananas: "; cin >> numBananas; // ************** computations ********************* gasSubtotal = (numGallons * GAS_PRICE) + (numGallons * GAS_TAX); bananaSubtotal = numBananas * BANANA_PRICE: totalPrice = gasSubtotal + bananaSubtotal; // ************** output display ******************* cout << "The total price is $" << totalPrice << endl; system("pause"); return 0; }// end of main