Page 477 - C++
P. 477

Restaurant Management
            A project to store record of Menu card, party card and their booking

            struct item_B
            {
                   int item_no;
                   char Description[20],remark[30];
                   float price;
            };
            struct date
            {
                   int dd,mm,yy,time_slot;
            };
            class MenuCard
            {
                   item_B I;
                   public:
                   void IGetdata();
                   void IDisplaydate();
                   int Return_item_no{  return I..item_no;    }

            };
            class PartyMenu
            {
                   char Party_code;
                   item_b I[20];
                   char Party_type[20];
                   int duration;
                   public:
                   void MGetdata();
                   void MDisplaydate();
                   char * Return_Partytype{     return Party_type;   }
                   };
            class Bill
            {
                   item_B i[20];
                   date tans_date;
                   float Bill_ant,dis_amt;
                   public:
                   void IGetdata();
                   void IDisplaydate();

                   };
            class Party_booking
            {
                   int Party_code;
                   date P_date;
                   float advance;
                   char cust_name[30],address[30],phone[10],mobile[15];
                   public:
                   void PBgetdata();
                   void Ldisplay();
                   int check_opartytiming(date dt)
                   {      if(dt.dd==P_date.dd &&dt.mm = =P_date.mm && dt.yy ==P_date.yy&&
            dt.time_slot==P_date.time_slot)
                                 return 1;
                          else
                                 return 0;             }
            };
   472   473   474   475   476   477   478   479   480   481   482