/*******************************************************************************
* Calculate Total Meal Cost With Set Price, Tax and Tip Info
*__________________________________________________________
* Uses set meal charge with set tip and set tax to calculate the total cost
*____________________________________________________________
*OUTPUT
* Code prints all variables and the sum of them
*******************************************************************************/
#include <iostream>
using namespace std;
int main() {
float mealCharge = 44.50;
float taxAmount = mealCharge * 0.0675;
float tipAmount = (mealCharge + taxAmount) * 0.15;
cout << "mealCharge: " << mealCharge << endl;
cout << "taxAmount: " << taxAmount << endl;
cout << "tipAmount: " << tipAmount << endl;
cout << "Total: " << tipAmount + taxAmount + mealCharge << endl;
return 0;
}
Ci8qKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCiogQ2FsY3VsYXRlIFRvdGFsIE1lYWwgQ29zdCBXaXRoIFNldCBQcmljZSwgVGF4IGFuZCBUaXAgSW5mbwoqX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwoqIFVzZXMgc2V0IG1lYWwgY2hhcmdlIHdpdGggc2V0IHRpcCBhbmQgc2V0IHRheCB0byBjYWxjdWxhdGUgdGhlIHRvdGFsIGNvc3QKKl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwoqT1VUUFVUCiogICBDb2RlIHByaW50cyBhbGwgdmFyaWFibGVzIGFuZCB0aGUgc3VtIG9mIHRoZW0KKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi8KI2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglmbG9hdCBtZWFsQ2hhcmdlID0gNDQuNTA7CglmbG9hdCB0YXhBbW91bnQgPSBtZWFsQ2hhcmdlICogMC4wNjc1OwoJZmxvYXQgdGlwQW1vdW50ID0gKG1lYWxDaGFyZ2UgKyB0YXhBbW91bnQpICogMC4xNTsKCQoJY291dCA8PCAibWVhbENoYXJnZTogIiA8PCBtZWFsQ2hhcmdlIDw8IGVuZGw7Cgljb3V0IDw8ICJ0YXhBbW91bnQ6ICIgPDwgdGF4QW1vdW50IDw8IGVuZGw7Cgljb3V0IDw8ICJ0aXBBbW91bnQ6ICIgPDwgdGlwQW1vdW50IDw8IGVuZGw7Cgljb3V0IDw8ICJUb3RhbDogIiA8PCB0aXBBbW91bnQgKyB0YXhBbW91bnQgKyBtZWFsQ2hhcmdlIDw8IGVuZGw7CgkKCXJldHVybiAwOwp9