// Fast food #include #include using namespace std; string food[]={"","hotdog","fries","soda","cookie","pizza","burger", "taco","shake"}; double price[9]={0,1.75,1.50,0.90,1.25,3.00,3.50,2.00,1.75}; void printAll(); //prints menu void instructions(); //display choices void process(char answer); //call correct function int main() { char answer; instructions(); cin>>answer; while ((answer != 'q') && (answer != 'Q')) { process(answer); instructions(); cin>>answer; } //loop until they enter a Q } //main void instructions() { //display choices cout<<"C++ Fast Food\n"; cout<<"Enter M to print the menu\n"; cout<<"Enter Q to quit\n"; cout<<"Your choice:"; } //instructions void process(char answer) { //call correct function switch (answer) { case 'M': case 'm': printAll(); break; case 'Q': case 'q': break; //don't go to default default: cout<<"Invalid choice\n"; } //switch } //process void printAll() { cout<<"Item\tFood\tPrice\n"; cout.precision(2); cout.setf(ios::fixed); for (int i=1; i<9; i++) cout<