I don`t like the int type of choice. Wouldn`t it be better being a char.
Quote:
|
cout << "The current cost of your meal is " << sale << endl;
|
Then why do you have to output sale when you have not used it at all. Better put it in the end.
Also the function totalsale is useless the way it is. It would be better to put all the switch statement inside the function and then output the sale statement.
Good luck.
