Sunday, September 25, 2011

Project on about player

 #include<iostream.h>
 #include<stdio.h>
 #include<conio.h>
 #include<fstream.h>
 #include<string.h>


 class player
 {

 public:
    int match;
    char name[30];


    int age;
    void in()
    {
    fstream f1;
    f1.open("fill_player.txt",ios::app);

    cout<<"\n\nEnter the players name:";
    cin>>name;
    cout<<"\n\nEnter the age of the players:";
    cin>>age;
    cout<<"\n\nEnter the number of matches he played:";
    cin>>match;

    f1<<name<<endl<<age<<endl<<match<<endl<<match<<endl;

    f1.close();

    }
    void out1();

    player()
    {
    age=0;
    }

  };
  void player :: out1()
  {
  cout<<"\n\nName:"<<name<<"\n\nAge:"<<age<<"\n\nNumber of matches:"<<match;
  }
  class batsman:public virtual player
  {
  protected:
        int avg,run,out,cen,halfcen;

  public:
    void openbat();
    void showbat();
  };

  void batsman :: openbat()
  {
  fstream f2;
  f2.open("batsman.txt",ios::app);

  cout<<"\n\nEnter total runs of his career:";
  cin>>run;
  cout<<"\n\nhow many centuries he has:";
  cin>>cen;
  cout<<"\n\nHow many half centuries he has:";
  cin>>halfcen;
  cout<<"\n\nHow many times he got out?:";
  cin>>out;
  avg=run/out;

  f2<<run<<endl<<cen<<endl<<halfcen<<endl<<out<<endl<<avg<<endl;
  f2.close();

  }


  void batsman :: showbat()
  {
  cout<<"\n\ntotal runs:"<<run<<"\n\nCentury:"<<cen<<"\n\nHalf century:"<<halfcen
  <<"\n\nAverage:"<<avg;
  }

  class bowler:virtual public player
  {
  protected:
        int bavg,wic,half,brun,ovr,ecn;

  public:
    void openbowl();
    void showbowl();
  };

 void bowler :: openbowl()
 {
  fstream f3;
  f3.open("bowler.txt",ios::app);


  cout<<"\n\nEnter the number of wicket he got:";
  cin>>wic;
  cout<<"\n\nEnter the number of runs he gave:";
  cin>>brun;
  cout<<"\n\nHow many times he got 5 wickets:";
  cin>>half;
  bavg=brun/wic;
  cout<<"\n\nHow many overs he bowld:";
  cin>>ovr;
  ecn=brun/ovr;
  f3<<wic<<endl<<brun<<endl<<half<<endl<<ovr<<endl<<ecn<<endl;
  f3.close();

 }

 void bowler :: showbowl()
 {
 cout<<"\n\nNumber of wickets:"<<wic<<"\n\nGiven runs:"<<brun<<"\n\nTimes to get 5 wickets:"
 <<half<<"\n\nBowling average:"<<bavg<<"\n\nEconomy rate:"<<ecn;
 }

 class general : public  batsman,  public bowler
 {
 protected:
       int runs,outs,cens,halfcens,wics,halfs,bruns,ovrs;
 public:
     void openprof();
     void editbat();
     void editbowl();
     void searchbat(int a,int b,int c);
     void searchbowl(int a,int b,int c,int d);
     void show();

 };

 void general :: openprof()
 {
 in();
 openbat();
 openbowl();
 }

 void general :: show()
 {
 out1();
 showbat();
 showbowl();
 }

 void general :: editbat()
 {
 cout<<"\n\nRuns to add:";
 cin>>runs;
 run=run+runs;
 cout<<"\n\nOuts to add:";
 cin>>outs;
 out=out+outs;
 cout<<"\n\nCenturies to add:";
 cin>>cens;
 cen=cen+cens;
 cout<<"\n\nHalf centuries to add:";
 cin>>halfcens;
 halfcen=halfcen+halfcens;
 }

 void general :: editbowl()
 {
 cout<<"\n\nWickets to add:";
 cin>>wics;
 wic=wic+wics;
 cout<<"\n\ntimes of getting 5 wickets to add:";
 cin>>halfs;
 half=half+halfs;
 cout<<"\n\nGiving runs to add:";
 cin>>bruns;
 brun=bruns+brun;
 cout<<"\n\novers to add:";
 cin>>ovrs;
 ovr=ovr+ovrs;
 }

 void general :: searchbat(int a,int b,int c)
 {


 if(avg>=a && b>=match && c<=age)

 cout<<endl<<name;
 }

 void general :: searchbowl(int a,int b,int c,int d)
 {



 if(a<=bavg && b>=match && c<=ecn && d<=age)
 cout<<endl<<name;

 }




 int main ()
 {
 int  i,j,ch,chl,mavg,mmatch,mage,mbavg,mbmatch,mecn,mage1;

 char nam[20];

 cout<<"\n\n\nWELCOME TO BCB SOFT.... ";

 clrscr();

 general ge[100];


 for (i=0;  ;i++)
 {
 cout<<"\n\n\nWhat do you want to do?"<<endl<<"\n1.Open profile"<<"\n2.edit profile"

 <<"\n3.To show"<<"\n4.search"<<"\n5.Exit";
 cin>>ch;

 switch(ch)
 {
 case 1:
    for(j=0;j<100  ;j++)
    {
    if(ge[j].age==0)
    {
    ge[j].openprof();
    break;
    }
    }

    break;

 case 2:
    cout<<"\n\nEnter name:";
    cin>>nam;

    for(j=0;j<100  ;j++)
    {
    if(strcmp(ge[j].name,nam)==0)
    {
    cout<<"\n1.batting"<<"\n2.bowling";
    cin>>chl;
    if(chl==1)
    ge[j].editbat();
    if(chl==2)
    ge[j].editbowl();
    break;
    }
    }
    break;
 case 3:
    {
    cout<<"\n\nEnter name:";
    cin>>nam;

    for(j=0;j<100  ;j++)
    {
    if(strcmp(ge[j].name,nam)==0)
    ge[j].show();
    }
    break;
     }
 case 4:
    cout<<"\n1.batting performance:"<<"\n2.bowling performance:" ;
    cin>>chl;
    if(chl==1)
    {
    cout<<"\n\nFix the minimum average:";
    cin>>mavg;
     cout<<"\n\nFix his minimum match playing:";
    cin>>mmatch;
    cout<<"\n\nFix his maximum age:";
    cin>>mage;
    }
    if(chl==2) {
    cout<<"\n\nFix the maximum bowling average:";
    cin>>mbavg;
    cout<<"\n\nFix the minimum match played:";
    cin>>mbmatch;
    cout<<"\n\nFix the maximum economy rate:";
    cin>>mecn;
    cout<<"\n\nFix the maximum age:";
    cin>>mage;
    }

    for(j=0;j<100  ;j++)



    {
    if(chl== 1)
    ge[j].searchbat(mavg,mmatch,mage);
    if(chl==2)
    ge[j].searchbowl(mbavg,mbmatch,mecn,mage1);

    }

    break;
}

if(ch==5)
break;
}

return 0;
}

Wednesday, August 24, 2011

A PROJECT ON REQUIREMENTS OF GIVING ADMISSION IN TEN UNIVERSITIES.

A PROJECT ON REQUIREMENTS OF GIVING ADMISSION IN TEN UNIVERSITIES

#include<iostream.h>
#include<conio.h>
#include<string.h>
class admission
          {
          };
class buet : public admission
              {
                   public:
                   void seeb()
                   {     cout<<"******************THIS IS BUET CAMPUS.*************"<<endl
                 <<endl<<"Grades IN Different Subjects Are Given Below."<<endl
                 <<endl<<"The Applicant Must Get G.P.A. 4.0 Out of G.P.A. 5.0 In H.S.C."
                 <<endl
                 <<" In Physics:=4.5(gp)"<<endl<<"In Chemistry:=4.5(gp)"<<endl
                 <<"In Mathematics:=4.5(gp)"<<endl<<"In English:=4.5(gp)"<<endl<<
                 "And At least G.P.A. 3.0 In Every Subject."<<endl<<endl<<
                 "The Total G.P.A. of Four Subjects is :=18"<<endl<<endl;
              }
              };
class kuet : public admission
              {
                public:
                 void seek()
                 {    cout<<"****************THIS IS  KUET CAMPUS.*****************"
                <<endl;
                cout<<"The Requirements Of Giving Addmission Test are given Below."
                <<endl<<endl<<"In Physics:=3.5 (gp)."<<endl<<"In Chemistry:=3.5(gp)."<<endl
                <<"In Mathematics:=3.5 (gp)."<<endl<<"In English:=3.5(gp)."<<endl
                <<endl<<"The Applicant Must Get At Least G.P.A. 3.5 In Every Subject."
                <<endl<<endl<<"The Total Of These Four Subjects Should Be :=17."
                <<endl<<endl;
                  }
              };
class cuet : public admission
              {
              public:
              void seec()
              {
              cout<<"***************** THIS IS CUET CAMPUS.*************.\n \n"
              <<"THE REQUIREMENTS ARE GIVEN BELOW.\n \n"
              <<"IN PHYSICS := 3.5 (G.P.A.)\n";
              cout<<" IN CHEMISTRY := 3.5  (G.P.A.)\n"
              <<"IN MATHEMATICS := 3.5 (G.P.A.)\n"
              <<"IN ENGLISH := 3.5 (G.P.A.)\n";
              cout<<"THE AVERAGE G.P.A. WILL BE := 4 (G.P.A.)  IN PER SUBJECTS.\n\n";
              }
              };
class ruet:public admission
              {
              public:
              void seer()
              {
               cout<<"*********** THIS IS RUET CAMPUS ************.\n \n"
               <<"THE REQUIREMENTS ARE GIVEN BELOW. \n \n"
               <<"IN PHYSICS := 3.5 (G.P.A.)\n"
               <<"IN CHEMISTRY := 3.5 (G.P.A.)\n"
               <<"IN MATHEMATIS := 3.5 (G.P.A.)\n \n";
               cout<<"THE AVERAGE G.P.A. IN THREE SUBJECTS WILL BE := 4 (G.P.A.)\n";
              }
              };
class ku : public admission
              {
              public:
              void seeku()
              {
                 cout<<"********************THIS IS  KHULNA UNIVERSITY.********************"
                 <<endl<<endl<<"The Requirements Are Given Below."<<endl<<endl<<
                 "The Applicant Must Get G.P.A. 3.5 In Both  S.S.C. AND IN H.S.C. "
                 <<endl<<"The Applicant Must Be Passed in the Year 2006/2007."<<endl
                 <<endl<<"In Physics :=3.0"<<endl<<"In Chemistry :=3.0"
                 <<endl<<"In Mathematics :=3.0"<<endl<<endl
                 <<"And The Total Grade Point In H.S.C. is :=3.50"<<endl<<endl
                 <<"SUBJECTS OF ENGINEERING DEPARTMENT :-"<<endl<<endl
                 <<"Computer Science & Engineering Decipline."<<endl
                 <<"Electronics & Communication Engineering decipline."<<endl
                 <<"And Mathematics Decipline."<<endl<<"Architecture Decipline."
                 <<endl<<"Town & Village decipline."<<endl<<endl
                 <<"THE SUBJECTS OF LIVESCIENCE DEPARTMENT."<<endl<<endl<<"Pharmacy"
                 <<endl<<"Genetics  & Biotechnology."<<endl
                 <<"Fisheries & Marine Rersource Technology."<<endl
                 <<"Environmental Science."<<""
                 <<endl<<"Soil Science."<<endl<<endl;
              }
              };
class du : public admission
              {
              public:
              void seedu()
              {
                cout<<"****************THIS IS DHAKA UNIVERSITY.******************"<<endl<<endl;
                cout<<"The requirements are given below."<<endl<<endl;
                cout<<"Total grade point is seven to give addmission."<<endl<<endl;
                   }
                };
class ru : public admission
              {
              public:
              void seeru()
              {
                cout<<"**************** THIS IS RAJSHAHI UNIVERSITY. ***************"
                <<endl<<endl<<"The applicant must get a total G.P.A. 6.5 in total. "
                <<endl<<"Without fourth Subject."<<endl<<endl
                <<"THe Applicant must get at least G.P.A.  3.0 in Both S.S.C. & H.S.C."
                <<endl<<endl<<"THE SUBJECTS ARE."<<endl<<endl
                <<"Mathematics."<<endl<<"Physics."<<endl<<"Chemistry."<<endl
                <<"Statistics."<<endl<<"Applied Physics & Electronic Engineering"
                <<endl<<"Applied Chemistry & Chemical Technology."<<endl
                <<"Biochemistry & Molecularlive science."<<endl<<"Pharmacy."<<endl
                <<"Computer Science & Engineering."<<endl
                <<"Population science & Human Resource Devolopment."
                <<endl<<"Information & Communication Engineering."
                <<endl<<"Applied Mathematics."<<endl<<"Materials Science & Technology."
                <<endl<<endl;
              }
              };
class su : public admission
              {
              public:
              void seesu()
              {
                 cout<<"*********THIS IS SAHAZALAL UNIVERSITY OF SCIENCE & TECHNONOLOGY.**********"
                 <<endl<<endl
                 <<"The Applicant must get At Least G.P.A. 2.5 In Both H.S.C."
                 <<" & S.S.C. With a total G.P.A. Of 5.75 ."
                 <<endl<<endl
                 <<"****For PHYSICS , COMPUTER SCIENCE & ENGINEERING , INDUSTRIAL & PRODUCTION"
                 <<" Engineering , Architecture.********"<<endl<<endl
                 <<"In Physics G.P.A. 2.0."<<endl<<"In Mathematics G.P.A. 2.0."
                 <<endl<<endl
                 <<"********FOR Civil & ENVIRONMENTAL ENGINEERING , PETROLIUM & GEORESOURCE"
                 <<" Engineering.*******"<<endl<<endl
                 <<"In physics G.P.A. 2.0."<<endl<<"In Chemistry G.P.A. 2.0."
                 <<endl<<"In Mathematics G.P.A. 2.0."<<endl<<endl
                 <<"*********FOR CHEMISTRY , CHEMICAL ENGINEERING & POLIMER SCIENCE.*********"
                 <<endl<<endl<<"In Chemistry G.P.A.  2.0."<<endl
                 <<"And In Mathematics G.P.A.  2.0."<<endl<<endl
                 <<"*******FOR FORESTRY , BIOTECHNOLOGY , FOOD & TEA TECHNOLOGY , GENETICS.********"
                 <<endl<<endl<<"In Biology G.P.A.  2.0."<<endl
                 <<"And In Mathematics G.P.A.  2.0."<<endl<<endl
                 <<"********************FOR MATHEMATICS , STATISTICS.****************"
                 <<endl<<endl<<"In Mathematics G.P.A.  2.0."<<endl<<endl;
              }
              };
class zu : public admission
              {
              public:
              void seezu()
              {
                 cout<<"****************THIS IS ZAHANGIRNAGAR UNIVERSITY.****************"
                 <<endl<<endl
                 <<"The Applicant Must Get G.P.A.  2.50  In H.S.C. In The Year 2006/2007."
                 <<endl<<"And Should get 'C' Grade At least In Two Subject."
                 <<endl<<endl
                 <<"The Total G.P.A. In  H.S.C & S.S.C.  Is  At Least  6.0 To apply.\n \n";                 endl;
              }
              } ;
class cu : public admission
              {
              public:
              void seecu()
              {
                cout<<"************* THIS IS CHITTAGONG UNIVERSITY. ***************"
                <<endl<<endl<<"***** For  'A' & 'H'  Unit The Requirements Are.****"
                <<endl<<"The Applicant Must Pass S.S.C. In The Year 2003 to 2005."<<endl
                <<"The Applicant Must Pass H.S.C. In The Year 2006/2007."<<endl
                <<"The Applicant Must Get A Total G.P.A. Of  6.0 Without Fourth Subject."
                <<endl<<"But The Applicant Must Get G.P.A. 2.5 In Both H.S.C. And S.S.C."
                <<endl<<endl
                <<"************The Subjects Of  'A' Unit . ******************"
                <<endl<<endl<<"Physics."<<endl<<"Chemistry."<<endl<<"Mathematics."
                <<endl<<"Statistics."<<endl<<"Computer Science & applied Physics."
                <<endl<<"And Electronics Department."<<endl<<endl
                <<"************ The Subjects OF  'H'  Unit. *****************"
                <<endl<<endl<<"Goology."<<endl<<"Botany."<<endl
                <<"Livechemistry & Molecularlive science."<<endl
                <<"Microbiology."<<endl<<"Geography & Environmental Science."<<endl
                <<"Soil Science."<<endl<<"And Genetic Engineering Department."<<endl
                <<endl;
              }
               };
class grade:public kuet,public buet,public cuet,public ruet
,public du,public ku,public cu,public ru,public zu,public su
{
private:
      float p,c,m,e,b,hsc,ssc;
public:
     void setgrade(void);
     void setkb(void);
     void provek(void);
     void proveb(void);
     void prover(void);
     void provec(void);
     void proveru(void);
     void proveku(void);
     void provedu(void);
     void provesu(void);
     void provecu(void);
     void provezu(void);
};
void grade::setgrade()
{
  cout<<"Enter the  G.P.A. of Physics:=";
 cin>>p;
 while(p>5.0)
 {
 cout<<"Please reenter G.P.A of Phsics:=";
 cin>>p;
 }
 cout<<"Enter the  G.P.A. of Chemistry:=";
 cin>>c;
  while(c>5.0)
 {
 cout<<"Please reenter G.P.A of Chemistry:=";
 cin>>c;
 }
 cout<<"Enter the  G.P.A. of Mathematics:=";
 cin>>m;
  while(m>5.0)
 {
 cout<<"Please reenter G.P.A of Mathematics:=";
 cin>>m;
 }
 cout<<"Enter the  G.P.A. of English:=";
 cin>>e;
  while(e>5.0)
 {
 cout<<"Please reenter G.P.A of English:=";
 cin>>e;
 }
cout<<"Enter the  G.P.A. of Biology:=";
 cin>>b;
  while(b>5.0)
 {
 cout<<"Please reenter G.P.A of Biology:=";
 cin>>b;
 }
 cout<<"Total G.P.A. In H.S.C.(Without fourth Subject.):= ";
 cin>>hsc;
 cout<<"Total G.P.A. in S.S.C.(Without fourth subject.):= ";
 cin>>ssc;
}
void grade ::setkb(void)
{
 cout<<"Enter the  G.P.A. of Physics:=";
 cin>>p;
 while(p>5.0)
 {
 cout<<"Please reenter G.P.A of Phsics:=";
 cin>>p;
 }
 cout<<"Enter the  G.P.A. of Chemistry:=";
 cin>>c;
  while(c>5.0)
 {
 cout<<"Please reenter G.P.A of Chemistry:=";
 cin>>c;
 }
 cout<<"Enter the  G.P.A. of Mathematics:=";
 cin>>m;
  while(m>5.0)
 {
 cout<<"Please reenter G.P.A of Mathematics:=";
 cin>>m;
 }
 cout<<"Enter the  G.P.A. of English:=";
 cin>>e;
  while(e>5.0)
 {
 cout<<"Please reenter G.P.A of English:=";
 cin>>e;
 }
}
void grade::provek(void)
{
    float t;
    t=p+c+m+e;
    if(p<3.5)
    cout<<"He is weak in physics."<<endl;
   if(c<3.5)
    cout<<"He is weak in chemistry."<<endl;
  if(m<3.5)
    cout<<"He is weak in mathematics."<<endl;
  if(e<3.5)
    cout<<"He is weak in english"<<endl;
  cout<<endl<<endl;
    if(t<17.0)
    {
    cout<<"THE APPLICANT CAN NOT APPLY FOR KUET."<<endl;
    cout<<"Because his/her total gp is :="<<t<<endl;
    cout<<"The requirwments are:="<<"\n \n";

  seek();
    }
    if(t>=17)
    if(p>=3.5&&p<=5.0)
    if(c>=3.5&&c<=5.0)
    if(m>=3.5&&m<=5.0)
    if(e>=3.5&&e<=5.0)
    {
    cout<<"The applicant can apply for KUET."<<endl;
    cout<<"Because his/her total gp is :="<<t<<endl;
    }
  if(t>=17.0)
  {
  if(p<3.5||c<3.5||m<3.5||e<3.5)
  {
  cout<<"He CAN NOT APPLY FOR KUET.\n \n";
  seek();
  }
}
}
void grade :: proveb(void)
{
  float t;
  t=p+c+m+e;
   if(p<3.0)
    {
    cout<<"He is weak in physics."<<endl;
    }
    if(c<3.0)
    {
    cout<<"He is weak in chemistry."<<endl;
    }
    if(m<3.0)
    {
    cout<<"He is weak in mathematics."<<endl;
    }
    if(e<3.0)
    {
    cout<<"He is weak in english."<<endl;
    }
   cout<<endl<<endl;
  if(t<18.0)
  {
  cout<<"He is UNAPPLICABLE in BUET."<<endl;
  cout<<" Because his total is:="<<t<<endl;
  cout<<"The requirements are :="<<"\n \n";
  seeb();
  }
  if(t>=18.0&&t<=20)
  if(p>=3.0&&p<=5.0)
  if(c>=3.0&&c<=5.0)
  if(m>=3.0&&m<=5.0)
  if(e>=3.0&&e<=5.0)
  {
  cout<<"The applicant can apply for BUET."<<endl;
    cout<<" Because his total is:="<<t<<endl;
    }
if(t>=18.0)
{
if(p<3.0||c<3.0||m<3.0||e<3.0)
{
cout<<"HE IS UNAPPLICABLE IN BUET. \n \n";
seeb();
}
}
}
void grade::prover(void)
{
  float t;
  t=p+c+m;
  ruet r;
     if(p<3.5)
    {
    cout<<"He is weak in physics."<<endl;
    }
    if(c<3.5)
    {
    cout<<"He is weak in chemistry."<<endl;
    }
    if(m<3.5)
    {
    cout<<"He is weak in mathematics."<<endl;
    }
   cout<<endl<<endl;
  if(t<12)
  {
  cout<<"The apllicant can not apply for RUET."<<endl;
  cout<<"Because his totatal is :="<<t<<endl<<"\n";
  seer();
  }

    if(t>=12)
    if(p>=3.5&&p<=5.0)
    if(c>=3.5&&c<=5.0)
    if(m>=3.5&&m<=5.0)
    {
    cout<<"The applicant can apply for RUET."<<endl<<endl;
    cout<<"Because  his total GPA in 3 subjects are:="<<t<<endl;
    }
   if(t>=12.0)
   {
   if(p<3.5||c<3.5||m<3.5)
   {
   cout<<"HE IS UNAPPLICABLE FOR RUET. \n \n";
   seer();
   }
 }
}
void grade:: provec(void)
{
  float t;
  t=p+c+m;
if(p<3.5)
 {
 cout<<"He is weak in Physics."<<endl;
 }
  if(c<3.5)
  {
  cout<<"He is weak in Chemistry."<<endl;
  }
  if(m<3.5)
  {
  cout<<"He is Weak in Mathematics."<<endl;
  }
  if(ssc<4.0)
  {
  cout<<"He is weak in S.S.C. G.P.A.\n";
  }
  if(hsc<4.0)
  {
  cout<<"He is weak in H.S.C. G.P.A.\n";
  }
  cout<<endl<<endl;
  if(t<12)
  {
  cout<<"He can not apply for CUET."<<endl;
  cout<<"Because his total in 3 subjects is:="<<t<<endl<<"\n";
  seec();
  }
  if(t>=12)
   if(hsc>=4.0)
   if(ssc>=4.0&&ssc<=5.0)
  if(p>=3.5&&p<=5.0)
  if(c>=3.5&&c<=5.0)
  if(m>=3.5&&m<=5.0)
  if(e>=3.5&&e<=5.0)
  {
  cout<<"The applicant can apply for CUET."<<endl;
  cout<<"Because his total in 3 Subjects is:="<<t<<endl;
  }
  if(t>=12.0)
  {
  if(p<3.5||c<3.5||m<3.5||e<3.5)
  {
   cout<<"HE IS UNAPPLICABLE FOR CUET. \n \n";
  seec();
   }
  }
}
void grade::proveru(void)
{
float r=(hsc+ssc);
if(p<2.0)
 {
 cout<<"He is weak in Physics."<<endl;
 }
  if(c<2.0)
  {
  cout<<"He is weak in Chemistry."<<endl;
  }
  if(m<2.0)
  {
  cout<<"He is Weak in Mathematics."<<endl;
  }
  if(hsc<3.0)
  {
  cout<<"He is weak in H.S.C. G.P.A.\n";
  }
  if(ssc<3.0)
  {
  cout<<"He is weak in S.S.C. G.P.A.\n";
  }
 if(r<6.5)
 {
 cout<<"HE is unapplicable in Rajshahi University."<<endl;
 cout<<"Because  HIS TOTAL OF H.S.C. & S.S.C.  G.P.A. is less."<<endl;
 seeru();
 cout<<"\n \n";
 }
  if(r>=6.5)
  if(hsc>=3.0)
  if(ssc>=3.0)
  if(p>=2.0&&c>=2.0)
  if(b>=2.0&&m>=2.0)
  if(e>=2.0)
  {
  cout<<"He can apply for Rajshahi University."<<endl;
  }
  if(r>=6.5)
  {
  if(hsc<3.0||ssc<3.0||p<2.0||c<2.0||b<2.0||m<2.0||e<2.0)
  {
  cout<<"HE IS UNAPPLICABLE IN RAJSHAHI UNIVERSITY.\n \n";
  seeru();
  }
  }
 }
void grade::proveku(void)
{
if(e<2.5)
{
cout<<"\n HE IS WEAK IN ENLISH.\n";
}
if(p<2.0)
 {
 cout<<"He is weak in Physics."<<endl;
 }
  if(c<2.0)
  {
  cout<<"He is weak in Chemistry."<<endl;
  }
  if(m<2.0)
  {
  cout<<"He is Weak in Mathematics."<<endl;
  }
  if(hsc<2.5)
  {
  cout<<"He is weak in H.S.C. G.P.A.\n";
  }
  if(ssc<2.5)
  {
  cout<<"He is weak in S.S.C. G.P.A.\n";
  }
 if(e>=2.5)
 if(hsc>=2.5&&ssc>=2.5)
 if(p>=2.0)
 if(c>=2.0)
 if(m>=2.0)
 if(b>=2.0)
 {
 cout<<"He is APPLICABLE FOR KHULNA UNIVERSITY.\n";
  }

   if(p<2.0||c<2.0||m<2.0||b<2.0||e<2.5||hsc<2.5||ssc<2.5)
  {
  cout<<"He CAN NOT APPLY FOR KHULNA UNIVERSITY.\n \n";
  seeku();
  }
  }
 void grade::provedu(void)
 {
   float r=(hsc+ssc);
   if(r>=7.0)
   if(p>=1.0&&c>=1.0)
   if(m>=1.0&&b>=1.0)
   {
   cout<<"HE IS APPLICABLE FOR DHAKA UNIVERSITY.\n \n";
   }
   if(r<7.0||p<1.0||c<1.0||m<1.0||b<1.0)
   {
   cout<<"HE IS  NOT APPLICABLE FOR DHAKA UNIVERSITY.\n \n";
   seedu();
   }
   }
void grade::provesu(void)
{
 float r;
 r=(hsc+ssc);

 if(hsc<2.5)
 {
 cout<<"HIS H.S.C. G.P.A. IS NOT SUFFICIENT.\n";
 }
if(ssc<2.5)
 {
 cout<<"HIS S.S.C. G.P.A. IS NOT SUFFICIENT.\n";
 }
  if(r<5.75)
 {
 cout<<"HIS TOTAL OF H.S.C. & S.S.C. IS NOT SUFFICIENT.\n";
 seesu();
 }
if(r>=5.75)
if(hsc>=2.5)
if(ssc>=2.5)
if(p>=2.0)
if(c>=2.0)
if(m>=2.0)
if(b>=2.0)
 {
 cout<<"HE IS APPLICABLE FOR SAHAJALAL UNIVERSITY.\n";
 }
if(r>=5.75)
{
if(hsc<2.5||ssc<2.5||p<2.0||c<2.0||m<2.0||b<2.0)
 {
 cout<<"HE IS NOT APPLICABLE FOR SAHAJALAL UNIVERSITY.\n \n";
 seesu();
 }
 }
 }
void grade::provecu(void)
{
float r=(hsc+ssc);
if(r<6.0||hsc<2.5||ssc<2.5)
{
cout<<"THE APPLICANT IS  UNAPPLICABLE  IN CHITTAGONG UNIVERSITY.\n \n";
seecu();
}
if(r>=6.0&&hsc>=2.5)
if(ssc>=2.5)
{
cout<<"HE IS APPLICABLE IN CHITTAGONG UNIVERSITY.\n \n";
}
}
void grade::provezu(void)
{
  if(hsc<2.5||p<1.0||c<1.0||m<1.0||e<1.0||b<1.0)
  {
  cout<<"HE IS UNAPPLICABLE IN ZAHANGIRNAAR UNIVERSITY.\n \n";
  seezu();
  }
  else
  {
  cout<<"HE IS APPLICABLE IN ZAHANGIRNAGAR UNIVERSITY.\n \n";
   }
}
int main()
{

  admission a;
  grade p;
  char name[30];
  float l,b,c,d,e,u,v,k;
  textcolor(11);
  while(1)
  {
  clrscr();
  textcolor(10);
cout<<"ENTER THE NAME  OF THE UNIVERSITY TO GIVE ADMISSION:(In small letter.)=";
cin>>name;
if(strcmp(name,"dhaka")!=0)
if(strcmp(name,"buet")!=0)
if(strcmp(name,"kuet")!=0)
if(strcmp(name,"cuet")!=0)
if(strcmp(name,"ruet")!=0)
if(strcmp(name,"rajshahi")!=0)
if(strcmp(name,"zahangirnagar")!=0)
if(strcmp(name,"sahajalal")!=0)
if(strcmp(name,"khulna")!=0)
if(strcmp(name,"chittagong")!=0)
{
  textcolor(13);
  cout<<"\nHAVE YOU FOROT THE ABREVIATION.\n \n";
  cout<<"Do you want to see the abreviation.\n \n";
  char d;
  cout<<"IF YOU WISH . ENTER YOUR CHOICE. ( y / n):=";
  cin>>d;
   if(d=='y')
   {
   cout<<"FOR BUET := buet.\n"<<"FOR KUET:=kuet.\n"
   <<"FOR CUET := cuet.\n"<<"FOR RUET:= ruet.\n";
    cout<<"FOR DHAKA UNIVERSITY := dhaka.\n"
    <<"FOR RAJSHAHI UNIVRSITY:=rajshahi.\n"
    <<"FOR KHULNA UNIVERSITY:= khulna.\n"<<"FOR CHITTAGONG UNIVERSITY:= chittagong.\n";
    cout<<"FOR SAHAJALAL SCIENCE & ENGINEERING UNIVERSITY:= sahajalal.\n";
    cout<<"FOR   ZAHANGINAGAR UNIVERSITY := zahangirnagar \n \n";
    }
  cout<<"RE ENTER THE CORRECT NAME  OF THE UNIVERSITY.";
  cin>>name;
  {
  if(strcmp(name,"dhaka")!=0)
if(strcmp(name,"buet")!=0)
if(strcmp(name,"kuet")!=0)
if(strcmp(name,"cuet")!=0)
if(strcmp(name,"ruet")!=0)
if(strcmp(name,"rajshahi")!=0)
if(strcmp(name,"zahangirnagar")!=0)
if(strcmp(name,"sahajalal")!=0)
if(strcmp(name,"khulna")!=0)
if(strcmp(name,"chittagong")!=0)
 {
 cout<<"WRONG NAME ENTERED & ERROR OCCURED.\n \n";
 cout<<"GOOD BYE.\n \n";
 break;
 }
}
  }
 clrscr();
 cout<<endl<<endl;
  if(!strcmp(name,"buet"))
     {
     p.setkb();
     clrscr();
     p.proveb();
     }
    else if(!strcmp(name,"kuet"))
         {
         p.setkb();
         clrscr();
         p.provek();

            }
    else if(!strcmp(name,"cuet"))
         {
         p.setgrade();
         clrscr();
         p.provec();

          }
    else if(!strcmp(name,"ruet"))
          {
          p.setkb();
          clrscr();
          p.prover();
          }
    else if(!strcmp(name,"chittagong"))
             {
             p.setgrade();
             clrscr();
             p.provecu();
              }
    else if(!strcmp(name,"khulna"))
              {
              p.setgrade();
             clrscr();
             p.proveku();
                }
    else if(!strcmp(name,"dhaka"))
             {
             p.setgrade();
             clrscr();
              p.provedu();
              }
    else if(!strcmp(name,"rajshahi"))
             {
             p.setgrade();
             clrscr();
             p.proveru();
             }
    else if(!strcmp(name,"sahajalal"))
             {
             p.setgrade();
             clrscr();
              p.provesu();
              }
       else if(!strcmp(name,"zahangirnagar"))
             {
             p.setgrade();
             clrscr();
             p.provezu();
             }

cout<<"Do you Want to exit ? (y/n)"<<endl;
 char w;
 cin>>w;
 if(w=='y')
 {
 cout<<"GOOD BYE.\n \n";
 cout<<"THANKS FOR USING ME.\n \n";
 break;
 }
 else
 {
 continue;
 }
 }
 getch();
 return 0;
 }

Vision