Wednesday, 2 May 2018

C++ Project Code for Departmental Store Management System

CODE:

#include<iostream.h>
#include<conio.h>
const int m=20;
  class dept
  {   int amount[m],pris[m],k,a,b,amount1;
      int code,code1,cod[m],s,last;
    public:
       float price,price1;
       dept(void);
       void sell(void);
       void total_items(void);
       void add_old(void);
       void add_new(void);
       void show(void);
     };
    dept:: dept(void)
    { s=0;a=10;b=40;last=5;amount[0]=0;
      for(int k=0;k<last;k++)
      { s=s+1;b=b+10;
      cod[k]=s;
      amount[k]=a;
      pris[k]=b;
      }
     }
   void dept::add_old(void)
    { cout<<"\nEnter item code:";
      cin>>code1;
      cout<<"\nEnter item price:";
      cin>>price1;
     for(k=0;k<last;k++)
       { if(code1==cod[k])
      { a=a+1;
        amount[k]=a;
        pris[k]=price1;
      }
       //    else
     //cout<<"\nSorry..This item is not available.\n";
       }
      }
   void dept::add_new(void)
   {    cout<<"\nEnter item code:";
    cin>>code1;
    cout<<"\nEnter amount of that item:";
    cin>>amount1;
    cout<<"\nEnter item price:";
    cin>>price1;

    cod[last]=code1;
    amount[last]=amount1;
    pris[last]=price1;
    last++;
     }
    void dept::show(void)
     { for(k=0;k<last;k++)
    {
      cout<<"\nCODE:"<<cod[k]<<"\t";
      cout<<"\nAMOUNT:"<<amount[k]<<"\t";
      cout<<"\nPRICE:"<<pris[k]<<endl;
      }
    }
  void dept::sell(void)
   {
    cout<<"\nEnter product code:\n";
    cin>>code;
    cout<<"\nEnter product price:\n";
    cin>>price;
    }
  void dept::total_items(void)
   {
     cout<<"\n\nITEM CODE:"<<code<<"\n\nITEM PRICE:"<<price;
   }
  int main()
  {
     dept d[10];
     static int j=0;
     int x,i=0,p,s=0;
    clrscr();
    do{
       cout<<"\nENTER YOUR CHOICE:\n";
       cout<<"\n1. Show all stored items:";
       cout<<"\n2. Add an old item:";
       cout<<"\n3. Add a new item:";
       cout<<"\n4. Sell an item:";
       cout<<"\n5. Total sold:";
       cout<<"\n6. Show total items sold:";
       cout<<"\n7. Quit";

      cin>>x;
    switch(x)
    {   case 1: d[i].show();
            break;
        case 2: d[i].add_old();
            d[i].show();
            break;
        case 3: d[i].add_new();
            d[i].show();
            break;
        case 4: d[i].sell();
            i++,j++;
            break;
        case 5:{ cout<<"Total Sold:";
             s=0;

             for(p=0;p<j;p++)
             { s=s+d[p].price;
             }
             cout<<s;
             cout<<"TK.\n";
             }
             break;
        case 6: for(i=0;i<j;i++)
              {  d[i].total_items();
               }
              break;
        case 7: break;
         }
         } while(x!=7);
          getch();
          return 0;
       }




Contact:
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com

C++ Project Code for Shopping Management System

CODE:

#include<iostream.h>
#include<conio.h>
#include<string.h>
    class iteam
 {
    protected:
        char name[20][20];
        float price[20];
        int sum,code[20];

    public:
        iteam()
        {
         sum=0;
         temp=0;
        }
        char catagory[20];
        int temp;
        void insert();
        void add();
        void display();
        void search();
        void remove();
        void total_amount();
        void catago_amount();
        void error1();
        void initial_task();
        int function1();
 };
     void iteam::insert()
   {
    int i,n,k;
    cout<<"enter catagory name=";
    cin>>catagory;
    cout<<"how many item do u want to insert =";
    cin>>n;
    for(i=temp;i<n;i++)
    {
      cout<<"enter name of the iteam=";
      cin>>name[temp];
      cout<<"enter code=";
      cin>>code[temp];
      cout<<"enter price=";
      cin>>price[temp];
      temp++;
      sum=sum+price[i];
    }
   }
     void iteam::add()
   {
    int i,n;
    cout<<"enter catagory name=";
    cin>>catagory;
    cout<<"how many item do u want to add =";
    cin>>n;
    for(i=temp;i<n;i++)
    {
      cout<<"enter name of the iteam=";
      cin>>name[temp];
      cout<<"enter code=";
      cin>>code[temp];
      cout<<"enter price=";
      cin>>price[temp];
      temp++;
      sum=sum+price[i];
    }
   }
     void iteam::display()
  {
    int i;
    cout<<"under the "<<catagory<<" catagory the items are:"<<'\n'<<'\n';
    cout<<"item name"<<'\t';
    cout<<"code"<<'\t';
    cout<<"price"<<'\t'<<'\n';
    for(i=0;i<temp;i++)
    {

      cout<<name[i]<<'\t'<<'\t';
      cout<<code[i]<<'\t';
      cout<<price[i]<<'\n'<<'\n';
     }
     cout<<'\n'<<'\n';
   }
    void iteam::search()
  {
      int i,m;
      cout<<"enter code:";
      cin>>m;
      for(i=0;i<temp;i++)
      {
    if(code[i]==m)
    {
    cout<<"item name is ="  <<name[i]<<'\n';
    cout<<"price is="<<price[i]<<'\n'<<'\n';
    }
    else
    cout<<"u have entered wrong code"<<'\n'<<'\n';
      }
      cout<<'\n'<<'\n';
  }
     void iteam::remove()
  {
      int i,m;
      cout<<"enter code:";
      cin>>m;
      for(i=0;i<temp;i++)
      {
    if(code[i]==m)
    {
      price[i]=0;
    }
    else
    cout<<"u have entered wrong code"<<'\n'<<'\n';
      }
      cout<<'\n'<<'\n';
  }
    void iteam::total_amount()
    {
     cout<<"the total price of all the items of all catagories is="<<sum<<'\n'<<'\n';
    }
    void iteam :: catago_amount()
    {
    cout<<"under the "<<catagory<<" catagory the total price of the items are="<<sum<<'\n'<<'\n';
    }
    void iteam::error1()
    {
      cout<<"FIRST U NEED TO INSERT ITEAM";
      cout<<'\n'<<'\n';
    }
    void iteam::initial_task()
    {
  cout<<"What do u want to do ?"<<'\n';
  cout<<"1.if u want to insert press 1"<<'\n';
  cout<<"2.if u want to add press 2"<<'\n';
  cout<<"3.if u want to display press 3"<<'\n';
  cout<<"4.if u want to search press 4"<<'\n';
  cout<<"5.if u want to remove press 5"<<'\n';
  cout<<"6.if u want to see the total price press 6"<<'\n';
  cout<<"7.if u want to exit press 0"<<'\n';
    }
    int iteam::function1()
    {
    int a1;
    cout<<"choose a option to enter from the following sites"<<'\n';
    cout<<"1.press 1 for cloths."<<'\n'<<"2.press 2 for daily using thing."<<'\n'
    <<"3.press 3 for raw materials."<<'\n'<<"4.press 0 for exit."<<'\n';
    cin>>a1;
    return a1;
    }
    class cloth:public iteam
    {
    private:
        char clt[15],cr[15];
    public:
       cloth operator+(cloth);
       void insert_cl();
       void display_cl();
    };
   cloth  cloth::operator+(cloth c)
   {
     cloth ob1;
     ob1.sum=sum+c.sum;
     return (ob1);
   }
   void cloth::insert_cl()
   {
   cout<<"what type of cloth is this ?(cotton,polyester,......)"<<'\n';
   cin>>clt;
   cout<<"what's the color of the cloth ?"<<'\n';
   cin>>cr;
   cout<<'\n'<<'\n'<<'\n';
   }
   void cloth::display_cl()
   {
   cout<<"type :"<<clt<<'\n';
   cout<<"color :"<<cr<<'\n'<<'\n'<<'\n';
   }
    class dusing:public iteam
    {
      private:
          char dus[15];
      public:
       dusing operator+(dusing);
       void insert_du();
       void display_du();
    };
   dusing dusing::operator+(dusing c)
   {
     dusing ob2;
     ob2.sum=sum+c.sum;
     return (ob2);
   }
   void dusing::insert_du()
   {
    cout<<"what type of daily using thing is this ?(food,cosmatics,.......)"<<'\n';
    cin>>dus;
    cout<<'\n'<<'\n'<<'\n';
   }
   void dusing::display_du()
   {
    cout<<"type :" <<dus<<'\n'<<'\n'<<'\n';
   }
    class material:public iteam
    {
    private:
        int sp;
        char mat[14],qu[15];
    public:
      material operator+(material c);
       void insert_ma();
       void display_ma();
    };
    material material::operator+(material c)
    {
     material ob3;
     ob3.sum=sum+c.sum;
     return (ob3);
    }
    void material::insert_ma()
    {
    cout<<"what type of raw material is this ?(vegetable,fish,fruits,.......)"<<'\n';
    cin>>mat;
    cout<<"what kind of quality do it carry ?"<<'\n';
    cin>>qu;
    cout<<"nomally after how many days it will be spoiled ?"<<'\n';
    cin>>sp;
    cout<<'\n'<<'\n'<<'\n';
    }
    void material::display_ma()
    {
    cout<<"type :" <<mat<<'\n';
    cout<<"quality :" <<qu<<'\n';
    cout<<"the time after it will spoil:" <<sp<<'\n'<<'\n'<<'\n';
    }
  int main()
 {
    cloth t[20],f1,ob;
    dusing du[20],f2,ob1;
    material ma[20],f3,ob2;
    int i,x=0,n,a,j,k,l,s,m,b,c,q,g=0,a1,y=0,z=0;
    char inp[20];
    clrscr();
    for(i=0;;i++)
    {
    a1=ob.function1();
    switch(a1)
    {
    case 1:
    for(i=0;;i++)
     {
       ob.initial_task();
       cin>>a;
       switch(a)
       {
     case 1:
        if(x>0)
         {
           cout<<"YOU CAN NOT INSERT ITEAM MORE THAN ONE TIMES"<<'\n'<<'\n';
           break;
          }
         else
         {
           cout<<"how many catagory do u want to insert=";
           cin>>n;
           for(i=0;i<n;i++)
            {
              t[x].insert();
              t[x].insert_cl();
               x++;
             }
          }
         break;
      case 2:
        if(x<=0)
        {ob.error1();
        break;}
         else
         {
           cout<<"how many catagory do u want to add=";
           cin>>n;
           for(j=0;j<n;j++)
            {
             t[x].add();
             t[x].insert_cl();
              x++;
             }
          break;
          }
       case 3:
        if(x<=0)
        {ob.error1();
        break;}
         else
         {
          for(s=0;s<x;s++)
           {
             t[s].display();
             t[s].display_cl();
           }
           break;
         }
       case 4:
        if(x<=0)
        {ob.error1();
        break;}
        if(x>0)
        {
         cout<<"enter ur desired catagory=";
         cin>>inp;
         for(c=0;c<x;c++)
         {
           b=strcmp(inp,t[c].catagory);
           if(b==0)
           break;
          }
          if(b==0)
            {t[c].search();
            t[c].display_cl();}
           break;
          }
        case 5:
        if(x<=0)
        {ob.error1();
          break;}
        else
        {
         cout<<"enter ur desired catagory=";
         cin>>inp;
         for(c=0;c<x;c++)
         {
           b=strcmp(t[c].catagory,inp);
           if(b==0)
           break;
          }
          if(b==0)
            t[c].remove();
           break;
          }
         case 6:
        if(x<=0)
         {ob.error1();
          break;}
        else
        {
          for(z=g;z<x;z++)
          {
            f1=f1+t[z];
            g++;
          }
        for(i=0;i<x;i++)
        t[i].catago_amount();
        f1.total_amount();
        break;
        }
     }
     if(a==0)
     break;
       }
       break;
       case 2:
    for(i=0;;i++)
     {
       ob1.initial_task();
       cin>>a;
       switch(a)
       {
     case 1:
        if(y>0)
         {
           cout<<"YOU CAN NOT INSERT ITEAM MORE THAN ONE TIMES"<<'\n'<<'\n';
           break;
          }
         else
         {
           cout<<"how many catagory do u want to insert=";
           cin>>n;
           for(i=0;i<n;i++)
            {
              du[y].insert();
              du[y].insert_du();
               y++;
             }
          }
         break;
      case 2:
        if(y<=0)
        {ob1.error1();
        break;}
         else
         {
           cout<<"how many catagory do u want to add=";
           cin>>n;
           for(j=0;j<n;j++)
            {
             du[y].add();
             du[y].insert_du();
              y++;
             }
          break;
          }
       case 3:
        if(y<=0)
        {ob1.error1();
        break;}
         else
         {
          for(s=0;s<y;s++)
           {
             du[s].display();
             du[s].display_du();
           }
           break;
         }
       case 4:
        if(y<=0)
        {ob.error1();
        break;}
        if(y>0)
        {
         cout<<"enter ur desired catagory=";
         cin>>inp;
         for(c=0;c<y;c++)
         {
           b=strcmp(inp,du[c].catagory);
           if(b==0)
           break;
          }
          if(b==0)
           { du[c].search();
            du[c].display_du();}
           break;
          }
        case 5:
        if(y<=0)
        {ob1.error1();
          break;}
        else
        {
         cout<<"enter ur desired catagory=";
         cin>>inp;
         for(c=0;c<y;c++)
         {
           b=strcmp(du[c].catagory,inp);
           if(b==0)
           break;
          }
          if(b==0)
            du[c].remove();
           break;
          }
         case 6:
        if(y<=0)
         {ob.error1();
          break;}
        else
        {
          for(z=g;z<x;z++)
          {
            f2=f2+du[z];
            g++;
          }
        for(i=0;i<y;i++)
        du[i].catago_amount();
        f2.total_amount();
        break;
        }
     }
     if(a==0)
     break;
       }
       break;
       case 3:
    for(i=0;;i++)
     {
       ob2.initial_task();
       cin>>a;
       switch(a)
       {
     case 1:
        if(z>0)
         {
           cout<<"YOU CAN NOT INSERT ITEAM MORE THAN ONE TIMES"<<'\n'<<'\n';
           break;
          }
         else
         {
           cout<<"how many catagory do u want to insert=";
           cin>>n;
           for(i=0;i<n;i++)
            {
              ma[z].insert();
              ma[z].insert_ma();
               z++;
             }
          }
         break;
      case 2:
        if(z<=0)
        {ob2.error1();
        break;}
         else
         {
           cout<<"how many catagory do u want to add=";
           cin>>n;
           for(j=0;j<n;j++)
            {
             ma[z].add();
             ma[z].insert_ma();
              z++;
             }
          break;
          }
       case 3:
        if(z<=0)
        {ob2.error1();
        break;}
         else
         {
          for(s=0;s<z;s++)
           {
             ma[s].display();
             ma[s].display_ma();
           }
           break;
         }
       case 4:
        if(z<=0)
        {ob2.error1();
        break;}
        if(z>0)
        {
         cout<<"enter ur desired catagory=";
         cin>>inp;
         for(c=0;c<z;c++)
         {
           b=strcmp(inp,ma[c].catagory);
           if(b==0)
           break;
          }
          if(b==0)
            {ma[c].search();
            ma[s].display_ma();}
           break;
          }
        case 5:
        if(z<=0)
        {ob2.error1();
          break;}
        else
        {
         cout<<"enter ur desired catagory=";
         cin>>inp;
         for(c=0;c<z;c++)
         {
           b=strcmp(ma[c].catagory,inp);
           if(b==0)
           break;
          }
          if(b==0)
            ma[c].remove();
           break;
          }
         case 6:
        if(z<=0)
         {ob2.error1();
          break;}
        else
        {
          for(q=g;q<z;q++)
          {
            f3=f3+ma[q];
            g++;
          }
        for(i=0;i<z;i++)
        ma[i].catago_amount();
        f3.total_amount();
        break;
        }
     }
     if(a==0)
     break;
       }
       break;
      }
      if(a1==0)
      break;
      }
       return 0;
     }



Contact:
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com

C++ Project Code for Dress Shop Management System

CODE:

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

class dress{
        private:
            char filename[20];

        protected:

            char dressname[60];
            char dressid[10];
            float price;
            void get();
};


void dress::get()
           {
        cout<<"\n ENTER  DRESS NAME  : ";
        cin>>dressname;
        cout<<"\n ENTER DRESS ID  NO : ";
        cin>>dressid;
        cout<<"\n ENTER DRESS PRICE  : ";
        cin>>price;

        strcpy(filename,dressid);
        strcat(filename,".txt");
        ofstream  x(filename);

        x<<"\n\nDRESS NAME  :"<<dressname;
        x<<"\n\nDRESS ID  :"<<dressid;
        x<<"\n\nPRICE     :"<<price;
        x.close();

           }

class male:protected dress
{
   public:
        male();

};
void male::male()
        {
         get();
         fstream x("MALE.txt",ios::app|ios::out);
         x<<dressname;
         x<<"\t"<<dressid;
         x<<"\t "<<price<<endl;
         x.close();
        }



class female:protected dress{

                public:
                     female();

                 };

void female::female()
        {
         get();
         fstream x("FEMALE.txt",ios::app|ios::out);
         x<<dressname;
         x<<"\t"<<dressid;
         x<<"\t "<<price<<endl;
         x.close();
        }

class childrn:protected dress

{

          public:
              childrn();
};


void childrn::childrn()
        {
         get();
         fstream x("CHILD.txt",ios::app|ios::out);
         x<<dressname;
         x<<"\t"<<dressid;
         x<<"\t "<<price<<endl;
         x.close();
        }


class add {

     private:
             int i;

     public:
             add();

       };

add::add()
{
    clrscr();

      while(1)
     {
        clrscr();
        cout<<"\n\n";
        cout<<"\t\t Categories of the dress products\n\n";
        cout<<"\n\n01. MALE. \n\n02. FEMALE. \n\n03. CHILDREN  OR";
        cout<<"\n\n04. EXIT. ";
        cout<<"\n\n\n\t Enter your option :";
        cin>>i;


        if(i==1)
        {
            male m;
        }

        if(i==2)
        {
            female f;
        }

        if(i==3)
        {
            childrn c;
        }
        if(i==4)

        break;

     }
}


class search{

      private:
               int m;
               char ch;

      public:
               search();

         };


search::search(){

              while(1)

                {

                     clrscr();
                     cout<<"\n\n 01.Male";
                     cout<<"\n\n 02.Female";
                     cout<<"\n\n 03.Children";
                     cout<<"\n\n 04.Search by id";
                     cout<<"\n\n 05.Exit";
                     cout<<"\n\n\t Select an option :";
                     cin>>m;


                       if(m==1)

                        {

                         ifstream m("MALE.txt");
                         while(m)

                           {
                            m.get(ch);
                            cout<<ch;


                           }
                      getch();

                          }

                       if(m==2)

                        {
                         ifstream m("FEMALE.txt");
                         while(m)

                           {
                             m.get(ch);
                             cout<<ch;


                           }
                      getch();

                        }


                       if(m==3)
                        {
                          ifstream m("CHILD.txt");
                          while(m)
                           {
                             m.get(ch);
                             cout<<ch;


                           }
                     getch();

                         }

                       if(m==4)
                        {
                          char id[10],filename[20];

                          cout<<"input id for search:";
                          cin>>id;
                          strcpy(filename,id);
                          strcat(filename,".txt");
                          ifstream m(filename);

                          while(m)

                               {
                               m.get(ch);
                               cout<<ch;


                            }
                         getch();
                        }

                        if(m==5)
                        break;




          }

        }


class cut{

    public:
         cut();

      };

cut::cut()
     {         char id[20],filename[20];
           cout<<"\n\nEnter the id to delete : ";
           cin>>id;
           strcpy(filename,id);
           strcat(filename,".txt");
           fstream x(filename,ios::out);
           x<<"INFORMATION IS UNAVALABLE";
           x.close();
     }



  int main()

     {
         int i;

         textcolor(5);
         textbackground(0);

         clrscr();

        while(1)
               {
                clrscr();
                cout<< "Choose an option\n\n";
                cout<< "\n\t01. Add a product.\n";
                cout<< "\n\t02. Search any product.\n";
                cout<< "\n\t03. Delete any product.\n";
                cout<< "\n\t04. Exit.";
                cout<< "\n\n\nEnter an option :";
                cin>>i;

                if(i==1)
                   {
                   add a;
                   }

                if(i==2)
                {

                    search s;

                }

                 if(i==3)
                {
                    cut c;
                }

                  if(i==4)
                  break;

               }

       return 0;

     }

/////////////////////////////////////////////////////
File Data of MALE.TXT :
undergarments    xxx     85
File Data of XXX.TXT :

DRESS NAME  :undergarments

DRESS ID  :xxx

PRICE     :85


Contact:
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com

C++ Project Code for Salary Management System

CODE:

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

class data
{
   protected:
    char p[30];
    unsigned long int x,y,z,m,n,d,a,b,c,e,f;
   public:
    void getdata()
    {
     cout<<"\n Enter name:";
     cin>>p;
     }
  };



class salary:public virtual data
{
  public:

    int wasif(void);
    void time_date(void);
    unsigned long int daycount(int,int,int);
    void manager(int);
    void search_employee(void);
 };

 int salary::wasif(void)
 {
  char w;
  cout<<"\n\n\n         ";
  textattr(4+9);
  cprintf("If you want to do anything,press 'Enter' or press 'Esc'.");
  textcolor(6);textbackground(9);
  w=getch();
  if(w==13)
   return 1;
  else
   return 0;
  }

void salary::time_date()
 {
  struct date d;
  int i,j;
  clrscr();
  getdate(&d);
  i=d.da_day;
  j=d.da_mon;
  cout<<"Date:"<<i<<"/"<<j<<"/"<<d.da_year;
  struct time t;
  int k;
  gettime(&t);
  i=t.ti_hour;
  j=t.ti_min;
  k=t.ti_sec;
  cout<<"\t\t\t\t\t\t           Time:"<<i<<":"<<j<<":"<<k<<endl;
  cout<<"\n\n\n                ";
  textcolor(3);
  textbackground(9);
  cprintf("WELCOME TO THE SALARY MANAGEMENT SOFTWARE");
  cout<<"\n\n\n";
  textcolor(6);
  textbackground(9);
  }

 unsigned long int salary::daycount(int x,int y,int z)
  {
     unsigned long int year1,day1,month1,year2,day2,month2,
     year,day,month;

    day1=x;month1=y;year1=z;
    cout<<endl;
    struct date d;
    getdate(&d);
    day2=d.da_day;
    month2=d.da_mon;
    year2=d.da_year;
    year1=year1*365;
    month1=month1*30;
    day1=day1+year1+month1;
    year2=year2*365;
    month2=month2*30;
    day2=day2+year2+month2;
    unsigned long int date=day2-day1;

      return date;
  }

void salary::manager(int salaryType=0)
{
     cout<<"\n Employee name:"<<p; delay(1000);
     cout<<"\n\n His joined date:(Day/Month/Year):";
     cin>>x>>y>>z;delay(500);
     cout<<"\n His working days are:";
     d=daycount(x,y,z);
     cout<<"\n "<<d%30<<" days "<<(d%365)/30<<" months "<<d/365<<" years";delay(500);
     cout<<"\n\n His per month salary is:";
     if(salaryType==0)
     {
       cout<<1500.0*30.0<<" taka";delay(500);
       m=1500.0*daycount(x,y,z);
       n=(1500.0*30.0)+((1500.0*30.0)*((d/365.0)*0.25));
     }
     else if(salaryType==1)
     {
       cout<<1000.0*30.0<<" taka";delay(500);
       m=1000.0*daycount(x,y,z);
       n=(1000.0*30.0)+((1000.0*30.0)*((d/365.0)*0.20));
     }
     else if(salaryType==2)
     {
       cout<<800.0*30.0<<" taka";delay(500);
       m=800.0*daycount(x,y,z);
       n=(800.0*30.0)+((800.0*30.0)*((d/365.0)*0.15));
     }
     else
     {
       cout<<500.0*30.0<<" taka";delay(500);
       m=500.0*daycount(x,y,z);
       n=(500.0*30.0)+((500.0*30.0)*((d/365.0)*0.10));
     }
     cout<<"\n His total income is:"<<m<<" taka";delay(500);
     cout<<"\n\n He spent "<<d/365<<"years in this post";delay(500);
     cout<<"\n\n After each year the company will implement his salary";delay(500);
     cout<<"\n\n Now in 2007 his salary is:"<<n<<" taka";delay(500);
     if(salaryType==0)
        n=(1500.0*30.0)+((1500.0*30.0)*(((d/365.0)+1)*0.25));
     else if(salaryType==1)
        n=(1000.0*30.0)+((1000.0*30.0)*(((d/365.0)+1)*0.20));
     else if(salaryType==2)
        n=(800.0*30.0)+((800.0*30.0)*(((d/365.0)+1)*0.15));
     else
        n=(500.0*30.0)+((500.0*30.0)*(((d/365.0)+1)*0.10));
     cout<<"\n\n Next year his salary will be:"<<n<<" taka";delay(500);
     cout<<"\n\n His Eid bonus is 10% of his salary";delay(500);
     if(salaryType==0)
        n=1500.0*30.0*(10.0/100.0);
     else if(salaryType==1)
        n=1000.0*30.0*(10.0/100.0);
     else if(salaryType==2)
        n=800.0*30.0*(10.0/100.0);
     else
        n=500.0*30.0*(10.0/100.0);
     cout<<"\n\n His bonus is:"<<n<<" taka";

}

void salary::search_employee()
{
    cout<<"\nEnter the employee name whom you want to search:";
    char q[30];
    gets(q);
    strcat(q,".txt");
    fstream z;
    z.open(q,ios::in);
    z.seekg(0);
    if(!z)
    {
     cout<<"\n\t\t\t Searching.";
     for(int l=0;l<5;l++)
     {
      delay(500);
      cout<<".";
        }
     sound(1550);
     cout<<"\n\t\t\t File not found...";
     delay(1000);
     nosound();
     }
    if(z)
    {
     cout<<"\n\t\t\t Searching.";
     for(int l=0;l<5;l++)
     {
      delay(500);
      cout<<".";
        }
     cout<<"\n\t\t\t File found...";delay(500);
     }
    char ch;
    while(z)
    {
     z.get(ch);
     cout<<ch;delay(25);
     }
}

class file:public virtual data,public salary
{
 public:
    void file_manager(int);
 };

void file::file_manager(int fileType=0)
{
     char mng[30];
     strcpy(mng,p);
     strcat(mng,".txt");
     fstream k;
     k.open(mng,ios::out);
     k<<"\n\n Our  Employee Mr."<<p<<"\n\n His joined date:";
     k<<x<<"/"<<y<<"/"<<z;
     k<<"\n\n His working days are:";
      d=daycount(x,y,z);
      a=d%30;b=(d%365)/30;c=d/365;
     k<<a<<" days "<<b<<" months "<<c<<" years";
     k<<"\n\n His per month salary is:";
     if(fileType==0)
     {
       e=1500.0*30.0;
       k<<e<<" taka";
       m=1500.0*daycount(x,y,z);
       n=(1500.0*30.0)+((1500.0*30.0)*((d/365.0)*0.25));
     }
     else if(fileType==1)
     {
       e=1000.0*30.0;
       k<<e<<" taka";
       m=1000.0*daycount(x,y,z);
       n=(1000.0*30.0)+((1000.0*30.0)*((d/365.0)*0.20));
     }
     else if(fileType==2)
     {
       e=800.0*30.0;
       k<<e<<" taka";
       m=800.0*daycount(x,y,z);
       n=(800.0*30.0)+((800.0*30.0)*((d/365.0)*0.15)) ;
      }
     else
     {
       e=500.0*30.0;
       k<<e<<" taka";
       m=500.0*daycount(x,y,z);
       n=(500.0*30.0)+((500.0*30.0)*((d/365.0)*0.10)) ;
      }
     k<<"\n\n His total income is:"<<m<<" taka";
      f=d/365;
     k<<"\n\n He spent "<<f<<" years in this post\n\n After each year the company will implement his salary";
     k<<"\n\n Now in 2007 his salary is:"<<n<<" taka";
     if(fileType==0)
           n=(1500.0*30.0)+((1500.0*30.0)*(((d/365.0)+1)*0.25));
     else if(fileType==1)
           n=(1000.0*30.0)+((1000.0*30.0)*(((d/365.0)+1)*0.20));
     else if(fileType==2)
           n=(800.0*30.0)+((800.0*30.0)*(((d/365.0)+1)*0.15));
     else
           n=(500.0*30.0)+((500.0*30.0)*(((d/365.0)+1)*0.10));
     k<<"\n\n Next year his salary will be:"<<n<<" taka\n\n His Eid bonus is 10% of his salary";
     if(fileType==0)
           n=1500.0*30.0*(10.0/100.0);
     else if(fileType==1)
           n=1000.0*30.0*(10.0/100.0);
     else if(fileType==2)
           n=800.0*30.0*(10.0/100.0);
     else
           n=500.0*30.0*(10.0/100.0);
     k<<"\n\n His bonus is:"<<n<<" taka";
     k.close();
}

int main()
{
  textcolor(6);
  textbackground(9);
 int a;
 data d;
 salary s;
 file f;
 do
 {
  clrscr();
  s.time_date();
  cout<<"\n Enter your choice:\n 1.Add an employee\n 2.Search an employee\n 3.Quit";
  cout<<"\n (Press 1 to 3)\n";
  int a1;
  cin>>a1;
  clrscr();
  s.time_date();
 if(a1==1)
  {
   f.getdata();
   cout<<"\n His post in the office:\n 1.Manager\n 2.Executive manager\n 3.Programmer\n 4.Software developer";
   cout<<"\n(Press 1 to 4)\n";
   cin>>a;
   clrscr();
   s.time_date();
   switch(a)
   {
    case 1:
       f.manager();
       f.file_manager();
       break;
    case 2:
       f.manager(1);
       f.file_manager(1);
       break;
    case 3:
       f.manager(2);
       f.file_manager(2);
       break;
    case 4:
       f.manager(3);
       f.file_manager(3);
       break;
    default:
       cout<<"\n\n\t You entered an invalid number";
       break;
       }

    }
 if(a1==2)
  {
    clrscr();
    s.time_date();
    f.search_employee();
    }
 if(a1==3)
    break;
   int l;
   l=f.wasif();
   if(l==0)
    break;
 }
  while(a!=3);

 return 0;
}


Contact:
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com

C++ Project Code for Company Management System

CODE:

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


class earn{
        public:
        double profit;
        void show(){   ifstream x("ooo.txt");
        if(!x)
        cout<<"PROFIT = 0 ";
        else{
        x>>profit;
        cout<<"\nTOTAL STARTING PROFIT:  "<<profit;
        x.close();
        }
        getch();
        }

};
class product:public virtual earn{
public:
           int quan;
           char name[20];
           char id[20];
           double percost;
           double persell;
           double cost;
           double sell;
           void cal(){cost=percost*quan;
               sell=persell*quan;
               profit=profit +(sell-cost)*365;}
           void file();
           void get() ;

};
void product::get()
{
 int s;
cout<<"how many product produce;";
cin>>s;
for(int i=0;i<s;i++)
{
  cout<<"\ninput product name: ";
  cin>>name;
  cout<<"\ninput product id: ";
  cin>>id;
  cout<<"\ninput percost of product: ";
  cin>>percost;
  cout<<"\ninput persell of product: ";
  cin>>persell;
  cout<<"\ntotal product quntity:";
  cin>>quan;
  }
  cal();
  file();
}
void product::file()
{
char file[20];
strcpy(file,id);
strcat(file,".txt");
ofstream f(file);
f<< "\nproduct name: "<<name<< "\nproduct id: "<<id<<"\npercost ofproduct: " <<percost<<"\npersell of product: "<<persell<<"\nquantity"<<quan<<"\n total cost: "<<cost<<"\nsell: "<<sell;
f.close();
}

class staff:public virtual earn{
         protected:
         double salary;
         char post[12];
         char emid[10];
         int postquan;
         void cal()
         {profit=(profit-salary*postquan)*12;
         }
         void getstaff();
         void file();
};
void staff::getstaff()
{
  cout<<"\ninput salary: ";
  cin>>salary;
  cout<<"\ninput postquantity: ";
  cin>>postquan;
  cal();
  file();
}
 void staff::file()
{  char file[20];
strcpy(file,emid);
strcat(file,".txt");
ofstream f(file);
f<< "\nstaff salary: "<<salary<< "\post quantity: "<<postquan;
f.close();
}

class ammount:public staff,public product
{

 public:
    void  add();
};
void ammount::add()
{
 cout<<"\nINPUT FOR PRODUCT";
 get();
 cout<<"\nINPUT FOR EMPLOYEE" ;
 getstaff();

 ofstream x("ooo.txt");
 x<<profit;
 x.close();
}


int main()
{
  clrscr();
  while(1)
  {
  clrscr();
  cout<<"1..add\n2..show\n3...search\n4..exit\n";
  cout<<"what is ur choice? ";
  int u;
  cin>>u;
  if(u==1)
  {
  ammount a;
  a.show();
  a.add();
  }
  if(u==2)
  {ammount d;
  d.show();
  }
  if(u==3)
   {clrscr();
   char id[20];
   char c;
    cout<<"INPUT ID FOR search";
    cin>>id;
    char file[20];
    strcpy(file,id);
    strcat(file,".txt")  ;
    ifstream x(file);
    while(x)
    {x.get(c)   ;
     cout<<c;
    }
    getch();
    x.close();
    clrscr();
   }
  if(u==4)
  break;
 }
  return 0;

}


Contact:
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com

Early Lung Cancer Detection Using Image Processing Matlab Project with Source Code

ABSTRACT
                   The most common cause of lung cancer is long‐term exposure to tobacco smoke, which causes 80‐90% of lung cancers. Cancer cells can be carried away from the lungs in blood, or lymph fluid that surrounds lung tissue. Lymph flows through lymphatic vessels, which drain into lymph nodes located in the lungs and in the center of the chest. Lung cancer often spreads toward the center of the chest because the natural flow of lymph out of the lungs is toward the center of the chest. As for the stages, in general there are four stages of lung cancer; I through IV. One of the major reason for non-accidental death is cancer. It has been proved that lung cancer is the topmost cause of cancer death in men and women worldwide. The death rate can be reduced if people go for early diagnosis so that suitable treatment can be administered by the clinicians within specified time. Cancer is, when a group of cells go irregular growth uncontrollably and lose balance to form malignant tumors which invades surrounding tissues. Cancer can be classified as Non-small cell lung cancer and small cell lung cancer. The various ways to detect lung cancer is by the use of image processing , pattern recognition and artificial neutral network to develop Computer aided diagnosis. In this project we use the techniques and algorithm used in image processing to detect cancer in three types of medical images. In this system first of all the medical images are recorded using a suitable imaging system. The images obtained are taken as input for the system where the image first go through the various steps of image processing like pre-processing, edge detection, morphological processing ,feature extraction.
                 Lung cancer which is among the five main types of cancer is a leading one to overall cancer mortality. Cancer is a serious health problem among various kinds of diseases. World Health Organization (WHO) reports that worldwide 7.6 million deaths are caused by cancer each year. Uncontrollable cell development in the tissues of the lung is called as lung cancer. Lung nodule is an abnormality that leads to lung cancer, characterized by a small round or oval shaped growth on the lung which appears as a white shadow in the CT scan. These uncontrollable cells restrict the growth of healthy lung tissues. If not treated, this growth can spread beyond the lung in the nearby tissue called metastasis and, form tumors. In order to preserve the life of the people who are suffered by the lung cancer disease, it should be pre‐diagnosed. The overall 5‐year survival rate for lung cancer patients increases from 14 to 49% if the disease is detected in time. So there is a need of pre-diagnosis system for lung cancer disease which should provide better results.

PROJECT OUTPUT

PROJECT VIDEO


Contact:
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com

Automated Blood Group Detection Using Image Processing Matlab Project Source Code

ABSTRACT
           Determining of blood types is very important during emergency situation before administering a blood transfusion. Presently, these tests are performed manually by technicians, which can lead to human errors. Determination of the blood types in a short period of time and without human errors is very much essential. A method is developed based on processing of images acquired during the slide test. The image processing techniques such as thresholding and morphological operations are used. The images of the slide test are obtained from the pathological laboratory are processed and the occurrence of agglutination are evaluated. Thus the developed automated method determines the blood type using image processing techniques. The developed method is useful in emergency situation to determine the blood group without human error.
         Before the blood transfusion it is necessary to perform certain tests. One of these tests is the determination of blood type. There are certain emergency situations which due to the risk of patient life, it is necessary to administer blood immediately. The tests currently available require moving the laboratory, it may not be time enough to determine the blood type and is administered blood type O negative considered universal donor and therefore provides less risk of incompatibility. However, despite the risk of incompatibilities be less sometimes that cause death of the patient and it is essential to avoid them. Thus, the ideal would be to determine the blood type of the patient. Secondly, the pre-transfusion tests are performed by technicians, which lead to human errors. Since these human errors can translate into fatal consequences, being one of the most significant causes of fatal blood transfusions is important to automate the procedure of these tests. Various blood type classification, diffusive reflectance, ABO Rh-D blood typing using simple morphological image processing.There is a scope for determining blood types using image processing techniques. Image segmentation algorithm for blood type classification and various image processing parameters are analyzed. Image features, such as color, texture, shape are analyzed. Low quality ancient document images and antibody agent analysis using image processing is explained. The slide test consists of the mixture of one drop of blood and one drop of reagent, being the result interpreted according to the occurrence or not of agglutination. The combination of the occurrence and nonoccurrence of the agglutination determines the blood type of the patient. Thus, the software developed in image processing techniques allows, through an image captured after the procedure of the slide test detect the occurrence of agglutination and consequently the blood type of the patient.

PROJECT OUTPUT


PROJECT VIDEO


Contact:
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com

Total Pageviews

CONTACT US

Prof. Roshan P. Helonde
Mobile / WhatsApp: +917276355704
Email: roshanphelonde@rediffmail.com

Contact Form

Name

Email *

Message *

Archive

Notes Planet Copyright 2018. Powered by Blogger.