#include<iostream.h>

void print_menu(int choice);

int main()
{
cout<<"Rodeo Snack Bar.\n";

int choice;

cout<<"Which Items Would You Like?\n";
cout<<"1-Sandwich.\n";
cout<<"2-Chips.\n";
cout<<"3-Brownie.\n";
cout<<"4-Regular Drink.\n";
cout<<"5-Large Drink.\n";
cout<<"6-Cancel This Sale & Start Over.\n";
cout<<"7-Total This Sale.\n";
cin >> choice;

print_menu(int choice);

switch(int choice)
{
case 1:
cout<<"$2.99";
break;
case 2:
cout<<"$1.50";
break;
case 3:
cout<<"$.75";
break;
case 4:
cout<<"$1.50";
break;
case 5:
cout<<"$2.00";
break;
case 6:
cout<<"Cancel The Sale";
break;
case 7:
cout<<"Total The Sale";
break;
}

return 0;
void print_menu(int choice)

Ok, here is my program so far..The thing is, i need it to total the whole sale until the choice 7 is chosen, i have asked my teacher, but he doesn't help much. Any help woul dbe appreciated.

Thanx