Created
September 28, 2017 04:55
-
-
Save jweyermtb/09b575c2a165cf7d9b25786a498994f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main () | |
{ | |
const int taxrate; | |
double costmeal, tiprate; | |
int toltalcost; | |
cout<<"what is the cost of your meal"; | |
cin>> costmeal; | |
cout<<" what is the tax rate"; | |
cin>> taxrate; | |
cout<<"what is the tip rate"; | |
cin>> tiprate; | |
int costtax | |
costtax= costmeal + (costmeal * taxrate); | |
int tip; | |
tip = costmeal * tiprate; | |
totalcost = tip + costtax; | |
cout<< totalcost << endl; | |
return 0 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment