You are viewing a single comment's thread. Return to all comments →
you can fix
tip=(double)(mealCost*tipPercent)/100;
tax=(double)(mealCost*taxPercent)/100;
double totalCost=mealCost+tip+tax;
//totalCost=(int)totalCost;
double cost = round(totalCost);
cout<<"The total meal cost is "<
return 0;
Seems like cookies are disabled on this browser, please enable them to open this website
Day 2: Operators
You are viewing a single comment's thread. Return to all comments →
you can fix
tip=(double)(mealCost*tipPercent)/100;
tax=(double)(mealCost*taxPercent)/100;
double totalCost=mealCost+tip+tax;
//totalCost=(int)totalCost;
double cost = round(totalCost);
cout<<"The total meal cost is "<
return 0;