Question: im not sure why my code isnt working? include #include using namespace std; int main() { int amountOfCoffee; double Price; char salesTaxChargeability; double TotalAmount; const

im not sure why my code isnt working?

include #include using namespace std;

int main() { int amountOfCoffee; double Price; char salesTaxChargeability; double TotalAmount; const double SALESTAX = 0.035; // 3.5 %

cout << " Enter the number of pounds of coffee ordered in Pounds :"; cin >> amountOfCoffee; cout << " Enter the price of coffee per Pound :"; cin >> Price; cout << " Is sales tax Chargeable (y or n): "; cin >> salesTaxChargeability; if ( (salesTaxChargeability == 'y') || (salesTaxChargeability == 'Y') ) TotalAmount = (amountOfCoffee * Price) + (SALESTAX * (amountOfCoffee * Price)); else TotalAmount = (amountOfCoffee * Price); cout << " Total amount the customer owes : " << setprecision(8) << TotalAmount; cout << " Thank you for using the applicable.. Goodbye" << endl; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!