/* Andras Konya 9/24/01 Chapter 3 Exercise 13A&B--- Fast Food Restaurant and Change*/ #include int main () { double burger; cout << "Enter the number of burgers: "; cin >> burger; double fries; cout << "Enter the number of fries: "; cin >> fries; double soda; cout<< "Enter the number of sodas: "; cin >> soda; cout << endl; cout.setf(ios::fixed); cout.precision(2); cout << "The total before tax is: $"; cout << ((burger*1.49)+(fries*0.89)+(soda*0.99)); cout << endl; cout << "The tax is: $"; cout << ((burger*1.49)+(fries*0.89)+(soda*0.99))*.06; cout << endl; cout << "The grand total is: $"; cout << ((burger*1.49)+(fries*0.89)+(soda*0.99))+ (((burger*1.49)+(fries*0.89)+(soda*0.99))*.06); cout << endl; cout << endl; double temp = ((burger*1.49)+(fries*0.89)+(soda*0.99))+ (((burger*1.49)+(fries*0.89)+(soda*0.99))*.06); double money; cout << "Enter the amount tendered: $"; cin >> money; double change = money -temp; cout << "The change is: $"; cout << change; char dummy; cin >> dummy; return (0); }