Hi guys am writing a program for a restuarnt and its about their menu. am in need of corrections,ideas and anything that will make the program excellent thanks..below is the code.

#include <cstdlib>
#include <iostream>
#include <cstring>
using namespace std;

int main(int argc, char *argv[])
{

int num1,num2,num3,num4,num5,num6;

   cout<< "WELCOME TECHMIX FASTFOOD"<<endl;
        cout <<" FOODMENU"<<endl; 

       cout<<"ENJOY YOURSELF"<<endl;

    cout<<"----------$$-----------"<<endl;

cout<<"Enter 1 for braekfast"<<endl;
cin>>num1;
if(num1=1)
{
          cout<<" Tea and Bread...(8:00am-9:30am)...Gh11cedis"<<endl;


          cout<<"Oat and Biscuits....(8:00-9:30am)...Gh15cedis"<<endl;


          cout<<"Kooko and Pizza....(8:00-9:30am)...Gh10cedis"<<endl;
          }

  cout<<"---------$$---------"<<endl;

cout<<"Enter 2 for branch"<<endl;
cin>>num2;
if(num2=2)
{
          cout<<"roasted plantain....(9:30am-10:30am)...Gh11cedis"<<endl;

          cout<<"youghurt and Pizza....(8:00-9:30am)...Gh20cedis"<<endl;

          cout<<"fruit juice and Bread...(8:00am-9:30am)...Gh11cedis"<<endl;
          }

  cout<<"---------$$---------"<<endl;

cout<<"enter 3 for lunch "<<endl;
cin>>num3;
if(num3=3)
{
          cout<<"Fried rice and tilapia....(12:30pm-1:30pm)...Gh25cedis"<<endl;

 cout<<"Plain rice and Beef stew....(12:30pm-2:30pm)...Gh30cedis"<<endl;


     cout<<"Banku tilapia and pepper....(2:30pm-3:00pm)...Gh35cedis"<<endl;
     }          


  cout<<"---------$$---------"<<endl;

cout<<"enter 4 for supper"<<endl;
cin>>num4;
if(num4=4)
 {
           cout<<"Fufu and light soup with red fish....(5:30pm-6:30pm)...Gh14cedis"<<endl;

 cout<<"jollof rice with grilled chicken....(7:30pm-8:30pm)...Gh20cedis"<<endl;

 cout<<"sausages with vegetables....(6:00am-9:30am)...Gh11cedis"<<endl;
}


  cout<<"---------$$---------"<<endl;
cout<<"enter 5 for Desset"<<endl;
    cin>>num5;
if(num5=5)
{
     cout<<"Plese choose your Desset"<<endl;


     cout<<"vanilla"<<endl;

     cout<<"chopped cabbage with carrots"<<endl;
     }

  cout<<"---------$$---------"<<endl;

    cout<<"For payment options enter 6"<<endl;
    cin>>num6;
    if(num5=5)
    {


  cout<<"Pay by visa card"<<endl;

  cout<<"Pay by master card"<<endl;

  cout<<"Pay by cheque"<<endl;

  cout<<"Pay by cash"<<endl;
}        

    system("PAUSE");
    return EXIT_SUCCESS;
}

Recommended Answers

All 4 Replies

So, what is your problem? What do you think it needs to make it "better"?

Like how to bring a particular meal out and describe its ingredients and its health benefits and some interesting stuffs to make the menu enriched

Well, you should make a class for the food, and some if its properties would be things like you describe, such as health benefits, other foods that compliment it, etc. Then, using class methods, you can call up this information for a specific food instance in the main menu, or elsewhere.

Thanks so much.. Am very grateful... Can you do a sample sample of it ?? I will be pleased

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.