Page 473 - C++
P. 473

Credit Card Billing System
            A project to store record of Customers, their credit card transactions and to generate Bills

            struct Date
            {
                   int dd,mm,yy;

            };
            struct Plan
            {
                   int Plan_code;
                   int free_calls;
                   char Internet;
                   float Call_charges,Internet_charges,Rent_ph,Rent_internet,others;

            };
            class Customer
            {
                   int R_code;
                   char Name[30],FatherName[20],Address[30],Phone[10],Mobile[15], pincode[8];
                   int free_calls;
                   float Arrear;
                   Plan P;
                   public:
                   void RGetdata();
                   void RDisplaydate();
                   int Return_Rcode()
                   {
                                 Return R_code;
                   }
                   Char *Return_mobile(){       return Mobile; }
                   Char *Return_name() { return Name; }
                   int Return_Arrear ( )
                   {
                                 return Arrear;
                   }
                   void Update_Arrear(int amt){ Arrear=amt;  }

                   };
            Class Monthly_cons
            {
                   int R_code;
                   Date Bill_dt,Due_dt,payment_dt;
                   char paid;
                   float Bill_amt,Fin_amt;
                   public:
                   void MGetdata();
                   void Mdisplaydata();
                   int Return_Ward_no(){return R_code;}
   468   469   470   471   472   473   474   475   476   477   478