Page 479 - C++
P. 479

Fee Record Generation
            A project to store record of students, their Fee record and to generate Fee Receipt

            struct Fee
            {
                   int CL;
                   float Tuition_fee,Science_fee,Development_ch,Bus_fee,Annual_ch,Other,Total,Arrear,
            Conscession;

            };
            class Student
            {
                   int Admnno,Rollno,Class;
                   char Name[30],FatherName[20],Address[30],Phone[10],Mobile[15], Section;
                   date DOB;
                   int Experience;
                   public:
                   void SGetdata();
                   void SDisplaydate();
                   int Return_Check(int A,int R)
                   {
                          if(Admno= = A && Rollno= = R)
                                 return 1;
                          else
                                 return 0;
                   }
                   int Return_Chclass(int CL, char S )
                   {
                          if(Class = = CL && Section = = S)
                                 return 1;
                          else
                                 return 0;
                   }

                   char *Return_Name() {        return Name;   }
            };
            class SFee
            {
                   int Admno,Rollno,Class,Quarter;
                   char Section,Paid;
                   Fee F;
                   public:
                   void FGetdata();
                   void FDisplaydata();
                   float *Return_Tot()  {       return M.Tot;  }
                   void Update_Fee(int CL, char S ,int A, int  R)
                   {
                          Paid=’Y’;
                   }
   474   475   476   477   478   479   480   481   482   483   484