Lab Work 3


·         C++ program to count word and sentence from a file. Show the use of Constructor and Destructor effectively. Use constructor to read from file and use method to display output to the screen.

Reference: http://www.c-programming-blog.com/2015/03/c-program-to-count-word-and-sentence.html
·        
C++ program to count Vowel and Consonant from a sentence. Read the sentence from a file. Use Constructor to read from file. Use Method to show output to the user.

·         C++ program for String Array sorting using bubble sort algorithm. Show the use of multiple class here. One class must have minimum one method. 
·        

          C++ program for Bubble Sort  of a given data from user. Use one method with parameter to take full array from main function to sort. No need to return anything from method. Just print the sorted array.

·         C++ program for Bubble Sort. Use Multiple Inheritance with Pointer Array.
Concept of Multiple Inheritances: http://www.c-plus-plus-programming.com/p/11.html

·         C++ program for Binary Search implementation. Use Multilevel Inheritance.

Reference:
http://c-programming-source.blogspot.com/2014/12/binary-search-using-c.html

Concept of Multilevel Inheritance:http://www.c-plus-plus-programming.com/p/c-multilevel-inheritance-if-class-is.html
 
·         Count number of students above, below and average students Using "C++ Programming". Use Multilevel Inheritance.
Concept of Multilevel Inheritance: http://www.c-plus-plus-programming.com/p/c-multilevel-inheritance-if-class-is.html
 
·         Constants usage in "C++ Programming". Use Encapsulation


·         Write a demo "C++ Program" which represent the ATM transaction. Use Data Abstraction.


·         Descending an Array using "C++ Programming". Use Constructor.




·          Add two Matrices and store the result into another Matrices using "C++ Programming" . Use at least one Method with return type.




195 comments:

  1. MD.Alamin
    ID.201910261
    CSE(60th)
    //C++ program to count word and sentence from a file.
    //Show the use of Constructor and Destructor effectively.
    // Use constructor to read from file and use method to display output to the screen.
    #include
    using namespace std;
    class A
    {
    public:
    ifstream file1;
    string line;
    int cw=0,cs=0;
    A()
    {
    cout<<"\n-------------------Constructor----------------\n";}

    void filein()

    {
    file1.open("alamin.txt");
    file1>>line;
    if(file1.is_open())
    {
    while(getline(file1,line))

    {

    for(int i=0;i<line.size();i++)
    {

    if(line[i]==' ') //words count
    {
    cw++;
    }
    else if(line[i]=='.'||line[i]=='?'||line[i]=='!') //sentence count
    {
    cs++;
    }
    }
    }
    }

    cout<<"Words : "<<cw<<"\nSentences : "<<cs;

    file1.close();

    }
    ~A()
    {
    cout<<"\n\n-------------------Distructor----------------\n";
    }





    };

    int main()

    {
    A obj;

    obj.filein();

    }

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. MD.Raihan Molla
    ID.201910061
    CSE(60th)

    //C++ program to count Vowel and Consonant from a sentence.
    //Read the sentence from a file. Use Constructor to read from file.
    //Use Method to show output to the user.

    https://ideone.com/QzrWPq

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete

  6. MD.Raihan Molla
    ID.201910061
    CSE(60th)

    //C++ program to count word and sentence from a file.
    //Show the use of Constructor and Destructor effectively.
    // Use constructor to read from file and use method to display output to the screen.

    https://ideone.com/wh0GfL

    ReplyDelete
  7. MD.Raihan Molla
    ID.201910061
    CSE(60th)

    //C++ program for Bubble Sort of a given data from user.
    //Use one method with parameter to take full array from main function to sort.
    //No need to return anything from method. Just print the sorted array.


    https://ideone.com/izidPG

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. MD.Raihan Molla
    ID.201910061
    CSE(60th)

    //C++ program for String Array sorting using bubble sort algorithm.
    //Show the use of multiple class here. One class must have minimum one method.


    https://ideone.com/XAfvuS

    ReplyDelete
  10. MD.Alamin Hosen
    ID.201910261
    cse (60th)
    https://ideone.com/tzaOvo

    ReplyDelete
  11. This comment has been removed by the author.

    ReplyDelete
  12. Use one method with parameter to take full array from main function to sort. No need to return anything from method. Just print the sorted array.

    MD.Alamin Hosen
    ID.201910261
    cse (60th)
    https://ideone.com/MkriSz#comments

    ReplyDelete
  13. Name:Md.ali zinnah
    id : 201910567
    batch:60th


    #include
    using namespace std;
    class A
    {
    public:
    ifstream file1;
    string line;
    int cw=0,cs=0;
    A()
    {
    cout<<"\n-------------------Constructor----------------\n";}

    void filein()

    {
    file1.open("alamin.txt");
    file1>>line;
    if(file1.is_open())
    {
    while(getline(file1,line))

    {

    for(int i=0;i<line.size();i++)
    {

    if(line[i]==' ') //words count
    {
    cw++;
    }
    else if(line[i]=='.'||line[i]=='?'||line[i]=='!') //sentence count
    {
    cs++;
    }
    }
    }
    }

    cout<<"Words : "<<cw<<"\nSentences : "<<cs;

    file1.close();

    }
    ~A()
    {
    cout<<"\n\n-------------------Distructor----------------\n";
    }





    };

    int main()

    {
    A obj;

    obj.filein();

    }

    ReplyDelete
  14. This comment has been removed by the author.

    ReplyDelete
  15. Md.Alamin Hosen
    ID.201910261
    batch.60th
    https://ideone.com/W5aiqn

    ReplyDelete
  16. // program for Binary Search implementation


    //RabbiIslam Fahim
    //ID:201910914
    //Batch:60th



    #include
    #include
    using namespace std;
    class r
    {
    public:
    int i,n;
    void m()
    {
    cout<<"Enter Total Number :";
    cin>>n;
    cout<<"Enter"<<" "<>arry[i];
    }
    cout<<"Enter The Number For Search :";
    cin>>srh;
    fst=0;
    lst=n-1;
    mdl=(fst+lst)/2;
    while(fstlst)
    {
    cout<<srh;
    }

    }
    };
    class rt:public t
    {
    public:
    void k()
    {
    m();
    l();
    cout<<srh<<" "<<"Position"<<" "<<mdl+1<<endl;

    }
    };
    int main()
    {
    rt obj;
    obj.k();
    getch();
    }

    ReplyDelete


  17. hw:3 program for String Array sorting using bubble sort algorithm.


    //Rabbi Islam Fahim
    //ID:201910914
    //Batch:60Th


    #include
    #include
    #include
    #include
    using namespace std;
    class r
    {
    public:

    int i,n,j;
    char temp;
    char str[200];
    void input()
    {
    cout<<"Enter The Word :";
    gets(str);
    n = strlen(str);
    for(i=0;i<n;i++)
    {
    for(j=0;j<n;j++)
    {
    if(str[i]<str[j])
    {
    temp=str[i];
    str[i]=str[j];
    str[j]=temp;
    }
    }
    }
    puts(str);
    }

    };
    class t:public r
    {
    public:
    char n1[20];
    void ter()
    {
    n1==("Rabbi Islam Fahim");
    cout<<n1<<endl;
    }

    };
    class e:public t
    {
    public:
    ~e()
    {
    //
    };
    };

    int main()
    {

    e obj;

    obj.input();
    obj.ter();
    getch();
    }

    ReplyDelete

  18. //HW:2 program to count Vowel and Consonant from a sentence.


    //Rabbi Islam Fahim
    //ID:201910914
    //Batch:60th


    #include
    #include
    #include
    using namespace std;
    class r
    {
    public:
    int v=0,c=0,i;
    char str[200];
    r()
    {
    cout<<"Show The count Vowel and Consonant from a sentence"<>str;
    for(i=0;str[i]!='\0';i++)
    {
    if(str[i]=='a' || str[i]=='e' || str[i]=='i' || str[i]=='o' || str[i]=='u')
    {
    v++;
    }
    else
    {
    c++;
    }
    }
    cout<<"Vowel In String :"<<v<<endl;
    cout<<"Consonant In String :"<<c<<endl;
    cout<<"Thank YOu All (:";
    }

    };
    int main()
    {
    r obj;
    obj.input();
    getch();
    }

    ReplyDelete
  19. //HW:1 program to count word and sentence



    //Rabbi Islam Fahim
    //ID:201910914
    //Batch:60th


    #include
    #include
    #include
    using namespace std;
    using namespace std;
    class r
    {
    public:
    int i;
    r(int c=0,int s=0)
    {
    char str[100];
    cout<<"Enter a text :"<<endl;
    gets(str);
    for(i=0;str[i]!='\0';i++)
    {
    if(str[i]==' ')
    c++;
    else if(str[i]=='.'|| str[i]=='?'|| str[i]=='!')
    s++;

    }
    cout<<endl<<"Number of words :"<<c+1<<endl;
    cout<<"Number of sentences :"<<s<<endl;
    }
    ~r()
    {
    cout<<"Thank You"<<endl;
    }

    //getch();
    };
    int main()
    {

    r obj;

    getch();
    }


    ReplyDelete
  20. This comment has been removed by the author.

    ReplyDelete
  21. Md.Alamin Hosen
    ID.201910261
    Batch.60th
    c++ program for Binary Search implementation.
    Use Multilevel Inheritance.#include
    https://ideone.com/njDezA

    ReplyDelete

  22. Md.Raihan Molla
    ID.201910061
    Batch: 60th


    c++ program for Binary Search implementation.
    Use Multilevel Inheritance.


    #include
    using namespace std;
    class r
    {
    public:
    int n, i,arr[100], number, first, last, middle;
    void inp()
    {
    cout<<"\nHow many elements would you like to enter?:";
    cin>>n;
    }
    };
    class A:public r
    {
    public:
    int a()
    {
    cout<<"\n***Enter "<>arr[i];
    }
    }
    };
    class B:public A
    {
    public:
    int b()
    {
    cout<<"\nEnter the number that you want to search:";
    cin>>number;
    first = 0;
    last = n-1;
    middle = (first+last)/2;
    }
    };
    class C:public B
    {
    public:
    int c()
    {
    while (first <= last)
    {
    if(arr[middle] < number)
    {
    first = middle + 1;

    }
    else if(arr[middle] == number)
    {
    cout< last)
    {
    cout<>arr[i];
    }
    }
    };
    class E:public D
    {
    public:
    int e()
    {
    cout<<"\nEnter the number that you want to search:";
    cin>>number;
    last= 0;
    first= n-1;
    middle = (first+last)/2;
    }
    };
    class F:public E
    {
    public:
    int f()
    {
    while (last<=first)
    {
    if(arr[middle] > number)
    {
    last = middle + 1;

    }
    else if(arr[middle] == number)
    {
    cout<>z;
    if(z==1)
    {
    C obj;
    obj.inp();
    obj.a();
    obj.b();
    obj.c();
    }
    else
    {
    F obj;
    obj.inp();
    obj.d();
    obj.e();
    obj.f();
    }

    }

    //Full code link :

    https://ideone.com/OZ1QdG



    ReplyDelete


  23. Md.Raihan Molla
    ID.201910061
    Batch: 60th

    Count number of students above,below and average students Using "C++ Programming"
    Use Multilevel Inheritance.

    Full code link :

    https://ideone.com/uPul3l

    ReplyDelete


  24. Md.Raihan Molla
    ID.201910061
    Batch: 60th

    C++ program for Bubble Sort. Use Multiple Inheritance with Pointer Array.

    Full code link :

    https://ideone.com/whp7Al

    ReplyDelete
  25. MD.Alamin Hosen
    ID.201910261
    Batch 60th
    C++ program for Bubble Sort. Use Multiple Inheritance with Pointer Array.

    Reference: http://c-programming-source.blogspot.com/2014/12/bubble-sort-with-struct-using-c.html

    https://ideone.com/x0rTCc

    ReplyDelete
  26. MD.Alamin Hosen
    ID.201910261
    Batch 60th
    Count number of students above,below and average students Using "C++ Programming"
    Reference: http://c-programming-source.blogspot.com/2014/12/count-number-of-students-abovebelow-and.html. Use Multilevel Inheritance.

    https://ideone.com/GtJTP4

    ReplyDelete
  27. Name-Towhidul Islam
    ID-201811105

    #HW-1
    C++ programme to count word and sentence.
    #include

    #include
    using namespace std;

    classT
    {
    public:
    int i;
    T(string string,int count=0,int tuh=0)
    {

    for(i=0; i<string.size(); i++)
    {
    if(string[i]==' '||string[i]=='\n')
    count++;
    else if(string[i]=='.'||string[i]=='?'||string[i]=='!')
    tuh++;
    }
    cout<<endl<<"Number of words :"<<count+1<<endl;
    cout<<"Number of sentences :"< tuh<<endl<<endl;


    }
    ~T()
    {
    cout<<"End";
    }


    };
    int main()
    {
    string N;

    getline(cin,N,'0');


    T obj(N);


    }

    ReplyDelete
  28. Name- Towhidul Islam
    ID-201811105,batch-57th

    //C++ programme to count word and sentence
    #include
    using namespace std;
    class T
    {
    public:
    ifstream file1;
    string line;
    int hin=0,hin1=0;
    T()
    {

    file1.open("Tuhin l.txt");
    file1>>line;
    if(file1.is_open())
    {
    while(getline(file1,line))

    {
    for(int i=0;i<line.size();i++)
    {

    if(line[i]==' ')
    {
    hin++;
    }
    else if(line[i]=='.'||line[i]=='?'||line[i]=='!')
    {
    hin1++;
    }
    }
    }
    }


    file1.close();

    }

    void in()
    {
    cout<<"Words : "<<hin<<"\nSentences : "<<hin1;
    }


    ~T()
    {
    cout<<"\n\nTHE END\n";
    }

    };

    int main()

    {
    T obj;
    obj.in();
    }

    ReplyDelete
  29. name-Towhidul Islam
    Id-201811105 batch-57th
    //c++ programme of vowel an sonsonant
    #include
    using namespace std;
    class T
    {
    public:
    ifstream file1;
    string line;
    int v=0,c=0;
    T()
    {

    file1.open("tuhin l.txt");
    file1>>line;
    if(file1.is_open())
    {
    while(getline(file1,line))

    {

    for(int i=0;i= 'a' && line[i] <= 'z') ||
    (line[i] >= 'A' && line[i] <= 'Z'))
    ++c;
    }
    }
    }



    file1.close();

    }
    void r()
    {
    cout << "Number of vowels : " << v<<"\nNumber of consonants : " << c;

    }


    };

    int main()

    {
    T obj;
    obj.r();

    }

    ReplyDelete
  30. name-Towhidul Islam
    ID-201811105 batch-57th

    //bubble sort of given data
    #include
    using namespace std;
    class T
    {
    public:
    int i,j,temp,n;
    string a;
    T()
    {
    cout<<"Enter a word: ";
    cin>>a;
    n=a.size();
    }
    };

    class U:public T
    {
    public:
    void uy()
    {
    for(i=1;itolower(a[j+1]))
    {
    temp=a[j];
    a[j]=a[j+1];
    a[j+1]=temp;
    }
    }
    cout<<"\nArray after bubble sort:";
    for(i=0;i<n;++i)
    cout<<" "<<a[i];
    cout<<endl;

    }
    };

    int main()
    {
    U obj;
    obj.uy();
    }

    ReplyDelete
  31. Name-Towhidul Islam
    id-201811105 batch-57h

    //programme of bubble sort using multiple inheritance
    and pointer array

    #include
    using namespace std;
    class T
    {
    public:
    int i,j,U;
    void uh(int n,int a[])
    {
    for(i=1;ia[j+1])
    {
    U=a[j];
    a[j]=a[j+1];
    a[j+1]=U;
    }
    }
    cout<<"\nArray after bubble sort:";
    for(i=0;i>d;
    cout<>b[i];
    T obj;
    obj.uh(d,b);
    }

    ReplyDelete
  32. name-Mohima Akter
    ID-201811112 batch-57th

    //c++ programme to count
    word and sentence
    #include
    using namespace std;
    class M
    {
    public:
    ifstream file1;
    string line;
    int ahi=0,ahi1=0;
    M()
    {

    file1.open("mahi l.txt");
    file1>>line;
    if(file1.is_open())
    {
    while(getline(file1,line))

    {
    for(int i=0;i<line.size();i++)
    {

    if(line[i]==' ')
    {
    ahi++;
    }
    else if(line[i]=='.'||line[i]=='?'||line[i]=='!')
    {
    ahi1++;
    }
    }
    }
    }


    file1.close();

    }

    void HI()
    {
    cout<<"Words : "<<ahi<<"\nSentences : "<<ahi1;
    }


    ~M()
    {
    cout<<"\n\nTHE END\n";
    }

    };

    int main()

    {
    M obj;
    obj.HI();
    }

    ReplyDelete
  33. name-Mohima Akter
    ID-201811112 batch-57th

    //HW : programme of bubble sort algorithm
    #include
    using namespace std;
    class M
    {
    public:
    int i,j,ah;
    void hi(int n,int a[])
    {
    for(i=1;ia[j+1])
    {
    ah=a[j];
    a[j]=a[j+1];
    a[j+1]=ah;
    }
    }
    cout<<"\nArray after bubble sort:";
    for(i=0;i>d;
    cout<>b[i];
    M obj;
    obj.hi(d,b);
    }

    ReplyDelete
  34. name-Mohima Akter
    ID-201811112 batch-57th

    //bubble sort of a given data from the user
    #include
    using namespace std;
    class M
    {
    public:
    int i,j,temp,n;
    string a;
    M()
    {
    cout<<"Enter a word: ";
    cin>>a;
    n=a.size();
    }
    };

    class A:public M
    {
    public:
    void uy()
    {
    for(i=1;itolower(a[j+1]))
    {
    temp=a[j];
    a[j]=a[j+1];
    a[j+1]=temp;
    }
    }
    cout<<"\nArray after bubble sort:";
    for(i=0;i<n;++i)
    cout<<" "<<a[i];
    cout<<endl;

    }
    };

    int main()
    {
    A obj;
    obj.uy();
    }

    ReplyDelete
  35. name-Mohima Akter
    ID-201811112 batch-57th
    // programme for vowel and consonant
    #include
    using namespace std;
    class M
    {
    public:
    ifstream file1;
    string line;
    int v=0,c=0;
    M()
    {

    file1.open("Mahi l.txt");
    file1>>line;
    if(file1.is_open())
    {
    while(getline(file1,line))

    {

    for(int i=0;i= 'a' && line[i] <= 'z') ||
    (line[i] >= 'A' && line[i] <= 'Z'))
    ++c;
    }
    }
    }



    file1.close();

    }
    void r()
    {
    cout << "Number of vowels : " << v<<"\nNumber of consonants : " << c;

    }


    };

    int main()

    {
    M obj;
    obj.r();

    }

    ReplyDelete
  36. name-Towhidul Islam
    ID-201811105 batch-57th

    //programme of bubbble sort algorithm
    #include
    using namespace std;
    class T
    {
    public:
    int i,j,U;
    void uh(int n,int a[])
    {
    for(i=1;ia[j+1])
    {
    U=a[j];
    a[j]=a[j+1];
    a[j+1]=U;
    }
    }
    cout<<"\nArray after bubble sort:";
    for(i=0;i>d;
    cout<>b[i];
    T obj;
    obj.uh(d,b);
    }

    ReplyDelete
  37. Name: Towhidul Islam
    Id:201811105,batch-57th
    //count no of students above,below and average
    using c++.

    #include
    using namespace std;
    class T
    {
    public:
    int i,n;
    int input()
    {

    cout<<"Enter the number of students:";
    cin>>n;

    }
    };
    class A:public T
    {
    public:
    int x=0,y=0,z=0;
    int calculation()
    {
    int a[n];
    for(i=0;i>a[i];
    }
    for(i=0;i60)
    x++;
    else if(a[i]<60)
    y++;
    else
    z++;
    }
    }


    };
    class B:public A
    {
    public:
    int output()
    {
    cout<<"\n AVERAGE STUDENTS ARE:"<<z<<endl;
    cout<<"\n ABOVE AVERAGE STUDENTS ARE:"<<x<<endl;
    cout<<"\n BELOW AVERAGE STUDENTS ARE:"<<y<<endl;
    }
    };

    int main()
    {
    B obj;
    obj.input();
    obj.calculation();
    obj.output();

    }

    ReplyDelete
  38. Name: Towhidul Islam
    Id: 201811105,batch-57th
    //c++ programme for bubble sort.use
    multiple inheritance with pointer array.

    #include
    using namespace std;
    class T
    {
    public:
    int n,i;
    int inp()
    {
    cout<<"\n\n size of array: ";
    cin>>n;
    cout<>*h;
    h++;
    }
    h=a;
    for(i=1;i>*h;
    h++;
    }
    h=a;
    for(i=1;i*(h+j))
    {
    temp=*(h+i);
    *(h+i)=*(h+j);
    *(h+j)=temp;
    }
    }
    cout<<"\nArray after bubble sort in descending order:";
    for(i=0;i>w;

    if(w==1)
    {
    U obj;
    obj.inp();
    obj.a();
    }
    else
    {
    H obj;
    obj.inp();
    obj.b();
    }
    }

    ReplyDelete
  39. Name:Towhidul Islam
    Id:201811105,batch-57th

    //c++ programme for binary
    search implementation

    #include
    using namespace std;
    int a[5]= {1,8,18,21,30},number,last,first=0,mid,n;
    class T
    {
    public:
    int i()
    {
    cout<<" the value:";
    cin>>number;
    last=5-1;
    }
    };
    class U:public T
    {
    public:

    int h()
    {
    do
    {
    mid=(first+last)/2;
    if(a[mid]==number)
    {
    cout<<" location"<<" "<last)
    {
    cout<<"Element is not found";
    }
    }
    };
    int main()
    {
    N obj;
    obj.i();
    obj.h();
    obj.n();
    }

    ReplyDelete
  40. Name: Mohima akter
    Id:201811112,batch-57th
    //c++ programme for binary search implementation.
    #include

    using namespace std;
    int a[5]= {1,8,18,21,30},number,last,first=0,mid,n;
    class M
    {
    public:
    int l()
    {
    cout<<" value:";
    cin>>number;
    last=5-1;
    }
    };
    class I:public M
    {
    public:

    int m()
    {
    do
    {
    mid=(first+last)/2;
    if(a[mid]==number)
    {
    cout<<"location"<<" "<last)
    {
    cout<<"Element is not found";
    }
    }
    };
    int main()
    {
    C obj;
    obj.l();
    obj.m();
    obj.n();
    }

    ReplyDelete
  41. Name: Mohima Akter
    Id:201811112,batch-57th

    //c++ programme for bubble sort using
    multiple inheritance with pointer array.
    #include
    using namespace std;
    class M
    {
    public:
    int n,i;
    int inp()
    {
    cout<<"\n\nEnter the size of array: ";
    cin>>n;
    cout<>*l;
    l++;
    }
    l=a;
    for(i=1;i>*l;
    l++;
    }
    l=a;
    for(i=1;i*(l+j))
    {
    temp=*(l+i);
    *(l+i)=*(l+j);
    *(l+j)=temp;
    }
    }
    cout<<"\nArray after bubble sort in descending order:";
    for(i=0;i>s;

    if(s==1)
    {
    U obj;
    obj.inp();
    obj.a();
    }
    else
    {
    H obj;
    obj.inp();
    obj.b();
    }
    }

    ReplyDelete
  42. Name:Mohima akter
    Id: 201811112,batch-57th

    //count number of students above below and
    average students using in c++ programming.

    #include
    using namespace std;
    class M
    {
    public:
    int i,n;
    int input()
    {

    cout<<" number of students:";
    cin>>n;

    }
    };
    class A:public M
    {
    public:
    int x=0,y=0,z=0;
    int calculation()
    {
    int a[n];
    for(i=0;i>a[i];
    }
    for(i=0;i60)
    x++;
    else if(a[i]<60)
    y++;
    else
    z++;
    }
    }


    };
    class H:public A
    {
    public:
    int output()
    {
    cout<<"\n AVERAGE STUDENTS ARE:"<<z<<endl;
    cout<<"\n average STUDENTS ARE:"<<x<<endl;
    cout<<"\n AVERAGE STUDENTS ARE:"<<y<<endl;
    }
    };

    int main()
    {
    H obj;
    obj.input();
    obj.calculation();
    obj.output();

    }

    ReplyDelete
  43. This comment has been removed by the author.

    ReplyDelete
  44. Eva akter
    ID.201910819
    CSE(60th)
    //C++ program to count word and sentence from a file.
    //Show the use of Constructor and Destructor effectively.
    // Use constructor to read from file and use method to display output to the screen.
    #include
    using namespace std;
    class E
    {
    public:
    ifstream file1;
    string line;
    int cw=0,cs=0;
    E()
    {
    cout<<"\n-------------------Constructor----------------\n";}

    void filein()

    {
    file1.open("Eva.txt");
    file1>>line;
    if(file1.is_open())
    {
    while(getline(file1,line))

    {

    for(int i=0;i<line.size();i++)
    {

    if(line[i]==' ') //words count
    {
    cw++;
    }
    else if(line[i]=='.'||line[i]=='?'||line[i]=='!') //sentence count
    {
    cs++;
    }
    }
    }
    }

    cout<<"Words : "<<cw<<"\nSentences : "<<cs;

    file1.close();

    }
    ~E()
    {
    cout<<"\n\n-------------------Distructor----------------\n";
    }





    };

    int main()

    {
    E obj;

    obj.filein();

    }

    ReplyDelete
  45. MD.ABU SHAYED
    ID.201710502
    CSE(54th)
    //C++ program to count word and sentence from a file.
    //Show the use of Constructor and Destructor effectively.
    // Use constructor to read from file and use method to display output to the screen.
    #include
    using namespace std;
    class A
    {
    public:
    ifstream file1;
    string line;
    int cw=0,cs=0;
    A()
    {
    cout<<"\nConstructor\n";}

    void filein()

    {
    file1.open("myfile.txt");
    file1>>line;
    if(file1.is_open())
    {
    while(getline(file1,line))

    {

    for(int i=0;i<line.size();i++)
    {

    if(line[i]==' ') //words count
    {
    cw++;
    }
    else if(line[i]=='.'||line[i]=='?'||line[i]=='!') //sentence count
    {
    cs++;
    }
    }
    }
    }

    cout<<"Words : "<<cw<<"\nSentences : "<<cs;

    file1.close();

    }
    ~A()
    {
    cout<<"\n\nDistructor\n";
    }





    };

    int main()

    {
    A obj;

    obj.filein();

    }

    ReplyDelete
  46. Robin Ahmed
    ID:201910109
    //C++ program to count word and sentence from a file.
    //Show the use of Constructor and Destructor effectively.
    // Use constructor to read from file and use method to display output to the screen.#include
    using namespace std;
    class R
    {
    public:
    ifstream file1;
    string line;
    int cnt=0,cnt1=0;
    R()
    {

    file1.open("Robin l.txt");
    file1>>line;
    if(file1.is_open())
    {
    while(getline(file1,line))

    {
    for(int i=0;i<line.size();i++)
    {

    if(line[i]==' ')
    {
    cnt++;
    }
    else if(line[i]=='.'||line[i]=='?'||line[i]=='!')
    {
    cnt1++;
    }
    }
    }
    }


    file1.close();

    }

    void r()
    {
    cout<<"Word : "<<cnt<<"\nSentence : "<<cnt1;
    }


    ~R()
    {
    cout<<"\n\t\tThank you";
    }

    };

    int main()

    {
    R obj;
    obj.r();


    }

    ReplyDelete
  47. Robin Ahmed
    ID:201910109
    Batch(60)
    //count vowel and consonant from a file.
    #include

    using namespace std;

    class R

    {

    public:

    ifstream file;

    string line;

    int v=0,c=0;

    R()

    {



    file.open("Robin.txt");

    file>>line;

    if(file.is_open())

    {

    while(getline(file,line))



    {



    for(int i=0;i= 'a' && line[i] <= 'z') ||

    (line[i] >= 'A' && line[i] <= 'Z'))

    ++c;

    }

    }

    }

    file.close();



    }

    void r()

    {

    cout << "Vowels : " << v<<"\nConsonants : " << c;



    }





    };



    int main()



    {

    R obj;

    obj.r();



    }

    ReplyDelete
  48. Sharmin Akter
    ID:201910106



    //C++ program to count Vowel and Consonant from a sentence.
    //Read the sentence from a file. Use Constructor to read from file.
    //Use Method to show output to the user.
    https://ideone.com/R0HTMo

    ReplyDelete
  49. This comment has been removed by the author.

    ReplyDelete
  50. This comment has been removed by the author.

    ReplyDelete
  51. Eva akter
    id:201910819//C++ program to count Vowel and Consonant from a sentence.
    //Read the sentence from a file. Use Constructor to read from file.
    //Use Method to show output to the user.

    https://ideone.com/PFV7jy

    Eva akter
    id:201910819

    //C++ program to count Vowel and Consonant from a sentence.
    //Read the sentence from a file. Use Constructor to read from file.
    //Use Method to show output to the user.
    https://ideone.com/PFV7jy

    ReplyDelete
  52. This comment has been removed by the author.

    ReplyDelete
  53. Md.ali zinnah
    ID: 201910567
    //C++ program to count word and sentence from a file.
    //Show the use of Constructor and Destructor effectively.
    // Use constructor to read from file and use method to display output to the screen.#include
    #include
    using namespace std;
    class z
    {
    public:
    ifstream file1;
    string line;
    int cnt=0,cnt1=0;
    z()
    {

    file1.open("zinnah l.txt");
    file1>>line;
    if(file1.is_open())
    {
    while(getline(file1,line))

    {
    for(int i=0;i<line.size();i++)
    {

    if(line[i]==' ')
    {
    cnt++;
    }
    else if(line[i]=='.'||line[i]=='?'||line[i]=='!')
    {
    cnt1++;
    }
    }
    }
    }


    file1.close();

    }

    void z()
    {
    cout<<"Word : "<<cnt<<"\nSentence : "<<cnt1;
    }


    ~z()
    {
    cout<<"\n\t\tThank you";
    }

    };

    int main()

    {
    z obj;
    obj.r();


    }

    ReplyDelete
  54. Md.Alamin Hosen
    Id.201910261
    Batch 60th

    Addition of two numbers without using arithmetic operator as like "+" using "C++ Programming" Use Method with paramete

    https://ideone.com/xS6cdg

    ReplyDelete
  55. Sharmin Akter
    ID:201910106
    //C++ program to count word and sentence from a file.
    //Show the use of Constructor and Destructor effectively.
    // Use constructor to read from file and use method to display output to the screen.

    https://ideone.com/qS3QuP

    ReplyDelete
  56. Md.Ali zinnah
    Id: 201910567
    Batch: (60th)
    //count vowel and consonant from a file.
    #include

    using namespace std;

    class Y

    {

    public:

    ifstream file;

    string line;

    int v=0,c=0;

    Y()

    {



    file.open("Robin.txt");

    file>>line;

    if(file.is_open())

    {

    while(getline(file,line))



    {



    for(int i=0;i= 'a' && line[i] <= 'z') ||

    (line[i] >= 'A' && line[i] <= 'Z'))

    ++c;

    }

    }

    }

    file.close();



    }

    void y()

    {

    cout << "Vowels : " << v<<"\nConsonants : " << c;



    }





    };



    int main()



    {

    Y obj;

    obj.y();



    }

    ReplyDelete
  57. Eva akter
    id:201910819
    //C++ program for String Array sorting using bubble sort algorithm.
    //Show the use of multiple class here. One class must have minimum one method.
    https://ideone.com/cJSyKM

    ReplyDelete
  58. PB:7
    ·Count number of students above, below and average students Using "C++ Programming"

    //Rabbi Islam Fahim
    //ID:201910914
    //Batch:60th



    #include
    #include
    using namespace std;
    class R
    {
    public:
    int i,n;
    int t()
    {

    cout<<"Enter the students number :"<>n;

    }
    };
    class S:public R
    {
    public:
    int p=0,q=0,r=0;
    int input()
    {
    int a[n];
    for(i=0;i>a[i];
    }
    for(i=0;i60)
    p++;
    else if(a[i]<60)
    q++;
    else if(a[i]=60)
    r++;
    }
    }


    };
    class I:public S
    {
    public:
    int output()
    {
    cout<<"Average Students :"<<p<<endl;
    cout<<"Below Average Students :"<<q<<endl;
    cout<<"Low Average Students :"<<r<<endl;
    }
    };

    int main()
    {
    I ts;
    ts.t();
    ts.input();

    ts.output();
    getch ();

    }

    ReplyDelete
  59. Sharmin Akter
    ID:201910106
    //C++ program for Bubble Sort of a given data from user.
    //Use one method with parameter to take full array from main function to sort.
    //No need to return anything from method. Just print the sorted array.
    https://ideone.com/BE2jlz

    ReplyDelete
  60. Sharmin Akter
    ID:201910106
    //C++ program for String Array sorting using bubble sort algorithm.
    //Show the use of multiple class here. One class must have minimum one method.
    https://ideone.com/cJSyKM

    https://ideone.com/Tx37Xu

    ReplyDelete
  61. Eva akter
    id:201910819
    //C++ program for Bubble Sort of a given data from user.
    //Use one method with parameter to take full array from main function to sort.
    //No need to return anything from method. Just print the sorted array.

    https://ideone.com/DVxtPr

    ReplyDelete
  62. Sharmin Akter
    ID:201910106
    c++ program for Binary Search implementation.
    Use Multilevel Inheritance.
    https://ideone.com/M5mSUH

    ReplyDelete
  63. Name- Towhidul Islam
    Id- 201811105 batch-57th

    //HW-addition of two numbers,without using arithmatic operators like "+"


    #include
    using namespace std;
    class tuhin
    {
    public:
    int m,a,carry;


    b(int m,int a)
    {
    cout<<"enter the two number :\n";

    while(a!=0)
    {
    carry= m&a;
    m= m^a;
    a= carry<<1;
    }
    cout<<" sum "<<":"<<m;
    return 0;
    }
    };
    int main()
    {
    tuhin obj;
    obj.b(12,174);

    }

    ReplyDelete
  64. Eva akter
    id:201910819
    c++ program for Binary Search implementation.
    Use Multilevel Inheritance.
    https://ideone.com/ch54O8

    ReplyDelete
  65. Sharmin Akter
    ID:201910106
    Count number of students above,below and average students Using "C++ Programming"
    Use Multilevel Inheritance.
    https://ideone.com/XaiuLn

    ReplyDelete
  66. Md Rabiul Auwal
    id:201911082
    batch 60th

    Addition of two numbers without using arithmetic operator as like "+" using "C++ Programming" Use Method with parameter

    #include
    using namespace std;
    class R
    {
    public:
    int a,b,carry;


    v(int a,int b)
    {
    cout<<"Enter 2 number witch you want to add:\n";
    //cin>>x>>y;
    while(b!=0)
    {
    carry=a&b;
    a=a^b;
    b=carry<<1;
    }
    cout<<"Addition is"<<":"<<a;
    return 0;
    }
    };
    int main()
    {
    R obj;
    obj.v(5,4);
    //obj.c();
    }

    ReplyDelete
  67. Eva akter
    id:201910819
    Count number of students above,below and average students Using "C++ Programming"
    Use Multilevel Inheritance.
    https://ideone.com/ss72OV

    ReplyDelete
  68. Md.Alamin Hosen
    Id.201910261
    Batch 60th

    Write a demo "C++ Program" which represent the ATM transaction. Use Data Abstraction.

    https://ideone.com/8OQaWV

    ReplyDelete
  69. md:Robiul Auwal
    id 201911082

    Count number of students above,below and average students Using "C++ Programming"
    Use Multilevel Inheritance.
    https://ideone.com/XaiuLn

    ReplyDelete
  70. Md Raihan Molla
    ID : 201910061
    CSE (60th)

    // Descending an Array using "C++ Programming". Use Constructor.

    Code link:

    https://ideone.com/BYMvLj

    ReplyDelete
  71. Eva akter
    id:201910819
    C++ program for Bubble Sort. Use Multiple Inheritance with Pointer Array.
    https://ideone.com/rrXRry

    ReplyDelete
  72. Sharmin Akter
    ID:201910106
    C++ program for Bubble Sort. Use Multiple Inheritance with Pointer Array.
    https://ideone.com/7C2a3T

    ReplyDelete
  73. Md.Alamin Hosen
    id.201910261
    Batch 60th

    Descending an Array using "C++ Programming". Use Constructor.
    https://ideone.com/nr2eAt

    ReplyDelete
  74. Eva akter
    id:201910819
    Descending an Array using "C++ Programming". Use Constructor.
    https://ideone.com/6ZECpg

    ReplyDelete
  75. Sharmin Akter
    ID:201910106
    // Descending an Array using "C++ Programming". Use Constructor.

    https://ideone.com/N4fkgJ

    ReplyDelete
  76. This comment has been removed by the author.

    ReplyDelete
  77. Sharmin Akter
    ID:2019101066
    Write a demo "C++ Program" which represent the ATM transaction. Use Data Abstraction.
    https://ideone.com/MEjltZ

    ReplyDelete
  78. Eva akter
    id:201910819
    Write a demo "C++ Program" which represent the ATM transaction. Use Data Abstraction.https://ideone.com/ImTewk

    ReplyDelete

  79. Sharmin Akter
    ID:2019101066
    Addition of two numbers without using arithmetic operator as like "+" using "C++ Programming" Use Method with paramete
    https://ideone.com/KmWcLu

    ReplyDelete
  80. MD.Alamin Hosen
    ID.201910261
    batch 60th

    Constants usage in "C++ Programming". Use Encapsulation

    https://ideone.com/ImMapG

    ReplyDelete
  81. Md Raihan Molla
    Id : 201910061
    CSE 60th

    // Constants usage in "C++ Programming". Use Encapsulation.

    Code link :
    https://ideone.com/FUqR25


    ReplyDelete
  82. Md Raihan Molla
    Id : 201910061
    CSE 60th

    Write a demo "C++ Program" which represent the ATM transaction. Use Data Abstraction.

    Code link :

    https://ideone.com/xA2DRs

    ReplyDelete
  83. Md Raihan Molla
    Id : 201910061
    CSE 60th

    Addition of two numbers without using arithmetic operator as like "+" using "C++ Programming" Use Method with parameter.

    Code link :
    https://ideone.com/8F1hHf

    ReplyDelete
  84. Md Raihan Molla
    ID : 201910061
    CSE 60th

    Add two Matrices and store the result into another Matrices using "C++ Programming" . Use at least one Method with return type.

    Code link :
    https://ideone.com/GEQYX7


    ******************[ All Lab Work are Solved ]***********************

    **************************[ The End ]*******************************



    ReplyDelete
  85. Eva akter
    id:201910819
    hw:11
    Addition of two numbers without using arithmetic operator as like "+" using "C++ Programming" Use Method with paramete
    https://ideone.com/GsPMtf

    ReplyDelete
  86. Eva akter
    id:201910819
    // Constants usage in "C++ Programming". Use Encapsulation.
    https://ideone.com/iuaBED

    ReplyDelete
  87. Eva akter
    id:201910819
    batch:60th
    Add two Matrices and store the result into another Matrices using "C++ Programming" . Use at least one Method with return type.
    https://ideone.com/vGWp6u


    ####THE END####

    ReplyDelete
  88. This comment has been removed by the author.

    ReplyDelete
  89. Sharmin akter
    id:201910106
    // Constants usage in "C++ Programming". Use Encapsulation.

    ReplyDelete
  90. Sharmin akter
    id:201910106
    Add two Matrices and store the result into another Matrices using "C++ Programming" . Use at least one Method with return type
    https://ideone.com/fKuW5G

    ReplyDelete
  91. MD.Alamin Hosen
    ID.201910261
    batch 60th



    Add two Matrices and store the result into another Matrices using "C++

    https://ideone.com/vu4RT4

    ReplyDelete
  92. Add two Matrices and store the result into another Matrices using "C++


    Rabiul Auwal
    CSE 60th
    id 201911082

    #include
    using namespace std;
    class R
    {
    public:
    int a[3][3],b[3][3],c[3][3],i,j;

    R()
    {
    cout<<"Enter the elements into matrix A :\n";
    for(i=0;i<3;i++)
    for(j=0;j<3;j++)
    {
    cout<<"a["<>a[i][j];

    }
    cout<<"\nEnter the elements into matrix B :\n";
    for(i=0;i<3;i++)
    for(j=0;j<3;j++)
    {
    cout<<"b["<>b[i][j];
    }
    for(i=0;i<3;i++)
    for(j=0;j<3;j++)
    c[i][j]=a[i][j]+b[i][j];
    cout<
    using namespace std;
    class R
    {
    public:
    int a[3][3],b[3][3],c[3][3],i,j;

    R()
    {
    cout<<"Enter the elements into matrix A :\n";
    for(i=0;i<3;i++)
    for(j=0;j<3;j++)
    {
    cout<<"a["<>a[i][j];

    }
    cout<<"\nEnter the elements into matrix B :\n";
    for(i=0;i<3;i++)
    for(j=0;j<3;j++)
    {
    cout<<"b["<>b[i][j];
    }
    for(i=0;i<3;i++)
    for(j=0;j<3;j++)
    c[i][j]=a[i][j]+b[i][j];
    cout<<endl;
    }
    int out()
    {
    cout<<"\nSummation of A and B matrix : \n";
    cout<<endl;
    for(i=0;i<3;i++)
    {
    cout<<" ";
    for(j=0;j<3;j++)
    cout<<c[i][j]<<" ";
    cout<<endl<<endl;
    }
    }
    };

    int main()
    {
    R obj;
    obj.out();

    return 0;
    }

    ReplyDelete
  93. Name: Md.ali zinnah
    Id: 201910567
    Batch: (60th)

    #include
    using namespace std;
    class Z
    {
    public:
    int a[3][3],b[3][3],c[3][3],i,j;

    Z()
    {
    cout<<"Enter the elements into matrix A :\n";
    for(i=0;i<3;i++)
    for(j=0;j<3;j++)
    {
    cout<<"a["<>a[i][j];

    }
    cout<<"\nEnter the elements into matrix B :\n";
    for(i=0;i<3;i++)
    for(j=0;j<3;j++)
    {
    cout<<"b["<>b[i][j];
    }
    for(i=0;i<3;i++)
    for(j=0;j<3;j++)
    c[i][j]=a[i][j]+b[i][j];
    cout<
    using namespace std;
    class Z
    {
    public:
    int a[3][3],b[3][3],c[3][3],i,j;

    Z()
    {
    cout<<"Enter the elements into matrix A :\n";
    for(i=0;i<3;i++)
    for(j=0;j<3;j++)
    {
    cout<<"a["<>a[i][j];

    }
    cout<<"\nEnter the elements into matrix B :\n";
    for(i=0;i<3;i++)
    for(j=0;j<3;j++)
    {
    cout<<"b["<>b[i][j];
    }
    for(i=0;i<3;i++)
    for(j=0;j<3;j++)
    c[i][j]=a[i][j]+b[i][j];
    cout<<endl;
    }
    int out()
    {
    cout<<"\nSummation of A and B matrix : \n";
    cout<<endl;
    for(i=0;i<3;i++)
    {
    cout<<" ";
    for(j=0;j<3;j++)
    cout<<c[i][j]<<" ";
    cout<<endl<<endl;
    }
    }
    };

    int main()
    {
    Z obj;
    obj.out();

    return 0;
    }

    ReplyDelete
  94. Name: Md. ali zinnah
    Id: 201910567
    Batch: (60th)

    #include
    using namespace std;
    class Z
    {
    public:
    int x,y,carry;


    v(int x,int y)
    {
    cout<<"Enter 2 number witch you want to add:\n";
    //cin>>x>>y;
    while(y!=0)
    {
    carry=x&y;
    x=x^y;
    y=carry<<1;
    }
    cout<<"Addition is"<<":"<<x;
    return 0;
    }
    };
    int main()
    {
    Z obj;
    obj.v(5,4);

    }

    ReplyDelete
  95. Name : Md. ali Zinnah
    Id: 201910567
    Batch: (60th)


    #include
    using namespace std;
    class Z
    {
    public:
    ifstream file1;
    string line;
    int cw=0,cs=0;
    Z()
    {
    cout<<"\n-------Constructor-------\n";}

    void filein()

    {
    file1.open("alamin.txt");
    file1>>line;
    if(file1.is_open())
    {
    while(getline(file1,line))

    {

    for(int i=0;i<line.size();i++)
    {

    if(line[i]==' ') //words count
    {
    cw++;
    }
    else if(line[i]=='.'||line[i]=='?'||line[i]=='!') //sentence count
    {
    cs++;
    }
    }
    }
    }

    cout<<"Words : "<<cw<<"\nSentences : "<<cs;

    file1.close();

    }
    ~Z()
    {
    cout<<"\n\n-------------------Distructor----------------\n";
    }





    };

    int main()

    {
    Z obj;

    obj.filein();

    }

    ReplyDelete
  96. Name: Md. ali zinnah
    ID: 201910567
    Batch: (60th)

    #include
    #include
    using namespace std;
    class r
    {
    public:
    int i,n;
    void m()
    {
    cout<<"Enter Total Number :";
    cin>>n;
    cout<<"Enter"<<" "<>arry[i];
    }
    cout<<"Enter The Number For Search :";
    cin>>srh;
    fst=0;
    lst=n-1;
    mdl=(fst+lst)/2;
    while(fstlst)
    {
    cout<<srh;
    }

    }
    };
    class rt:public t
    {
    public:
    void k()
    {
    m();
    l();
    cout<<srh<<" "<<"Position"<<" "<<mdl+1<<endl;

    }
    };
    int main()
    {
    rt obj;
    obj.k();
    getch();
    }

    ReplyDelete
  97. Name: Md.ali zinnah
    Id: 201910567
    Batch: (60th)

    #include
    #include
    #include
    #include
    using namespace std;
    class z
    {
    public:

    int i,n,j;
    char temp;
    char str[200];
    void input()
    {
    cout<<"Enter The Word :";
    gets(str);
    n = strlen(str);
    for(i=0;i<n;i++)
    {
    for(j=0;j<n;j++)
    {
    if(str[i]<str[j])
    {
    temp=str[i];
    str[i]=str[j];
    str[j]=temp;
    }
    }
    }
    puts(str);
    }

    };
    class t:public z
    {
    public:
    char n1[20];
    void ter()
    {
    n1==("Rabbi Islam Fahim");
    cout<<n1<<endl;
    }

    };
    class y:public t
    {
    public:
    ~y()
    {
    //
    };
    };

    int main()
    {

    y obj;

    obj.input();
    obj.ter();
    getch();
    }

    ReplyDelete
  98. Name: Md.ali zinnah
    Id: 201910567
    Batch: (60th)

    #include
    #include
    #include
    using namespace std;
    using namespace std;
    class z
    {
    public:
    int i;
    z(int a=0,int b=0)
    {
    char str[100];
    cout<<"Enter a text :"<<endl;
    gets(str);
    for(i=0;str[i]!='\0';i++)
    {
    if(str[i]==' ')
    a++;
    else if(str[i]=='.'|| str[i]=='?'|| str[i]=='!')
    b++;

    }
    cout<<endl<<"Number of words :"<<a+1<<endl;
    cout<<"Number of sentences :"<<b<<endl;
    }
    ~z()
    {
    cout<<"Thank You"<<endl;
    }

    //getch();
    };
    int main()
    {

    z obj;

    getch();
    }

    ReplyDelete
  99. Name: Md.ali zinnah
    ID: 201910567
    Batch: (60th)

    #include
    using namespace std;
    class z
    {
    public:
    int n, i,arr[100], number, first, last, middle;
    void inp()
    {
    cout<<"\nHow many elements would you like to enter?:";
    cin>>n;
    }
    };
    class A:public z
    {
    public:
    int a()
    {
    cout<<"\n***Enter "<>arr[i];
    }
    }
    };
    class B:public A
    {
    public:
    int b()
    {
    cout<<"\nEnter the number that you want to search:";
    cin>>number;
    first = 0;
    last = n-1;
    middle = (first+last)/2;
    }
    };
    class C:public B
    {
    public:
    int c()
    {
    while (first <= last)
    {
    if(arr[middle] < number)
    {
    first = middle + 1;

    }
    else if(arr[middle] == number)
    {
    cout< last)
    {
    cout<>arr[i];
    }
    }
    };
    class E:public D
    {
    public:
    int e()
    {
    cout<<"\nEnter the number that you want to search:";
    cin>>number;
    last= 0;
    first= n-1;
    middle = (first+last)/2;
    }
    };
    class F:public E
    {
    public:
    int f()
    {
    while (last<=first)
    {
    if(arr[middle] > number)
    {
    last = middle + 1;

    }
    else if(arr[middle] == number)
    {
    cout<>z;
    if(z==1)
    {
    C obj;
    obj.inp();
    obj.a();
    obj.b();
    obj.c();
    }
    else
    {
    F obj;
    obj.inp();
    obj.d();
    obj.e();
    obj.f();
    }

    }

    ReplyDelete
  100. Name: Md.ali zinnah
    Id: 201910567
    Batch: (60th)

    #include
    using namespace std;
    class z
    {
    public:
    ifstream file1;
    string line;
    int v=0,c=0;
    z()
    {

    file1.open("Mahi l.txt");
    file1>>line;
    if(file1.is_open())
    {
    while(getline(file1,line))

    {

    for(int i=0;i= 'a' && line[i] <= 'z') ||
    (line[i] >= 'A' && line[i] <= 'Z'))
    ++c;
    }
    }
    }



    file1.close();

    }
    void r()
    {
    cout << "Number of vowels : " << v<<"\nNumber of consonants : " << c;

    }


    };

    int main()

    {
    z obj;
    obj.r();

    }

    ReplyDelete
  101. // MD.RAFSAN HABIB
    // ID. 201730597

    //C++ program for Bubble Sort of a given data from user.
    //Use one method with parameter to take full array from main function to sort.
    //No need to return anything from method. Just print the sorted array.


    #include
    using namespace std;
    class f
    {
    public:
    ifstream file1;
    string line;
    int cnt=0,cnt1=0;
    f()
    {

    file1.open("Rafsan l.txt");
    file1>>line;
    if(file1.is_open())
    {
    while(getline(file1,line))

    {
    for(int i=0;i<line.size();i++)
    {

    if(line[i]==' ')
    {
    cnt++;
    }
    else if(line[i]=='.'||line[i]=='?'||line[i]=='!')
    {
    cnt1++;
    }
    }
    }
    }


    file1.close();

    }

    void r()
    {
    cout<<"Words : "<<cnt<<"\nSentences : "<<cnt1;
    }


    ~f()
    {
    cout<<"\n\n**********THE END**************\n";
    }

    };

    int main()

    {
    f obj;
    obj.r();
    }

    ReplyDelete
  102. Farzana Akter
    Id:201811155
    //C++ program to count word and sentence from a file.
    //Show the use of Constructor and Destructor effectively.
    // Use constructor to read from file and use method to display output to the screen.
    https://ideone.com/hO3c9L

    ReplyDelete
  103. Farzana Akter
    id:201811155
    batch:57
    //HW:2 program to count Vowel and Consonant from a sentence.
    https://ideone.com/UGcVmS

    ReplyDelete
  104. Farzana Akter
    id:201811155
    batch:57
    //C++ program for String Array sorting using bubble sort algorithm.
    //Show the use of multiple class here. One class must have minimum one method.
    https://ideone.com/FzyZkD

    ReplyDelete
  105. Farzana Akter
    id:201811155
    batch:57
    C++ program for Bubble Sort. Use Multiple Inheritance with Pointer Array.

    https://ideone.com/cSnoPX

    ReplyDelete








  106. Farzana Akter
    id:201811155
    batch:57
    //C++ program for Bubble Sort of a given data from user.
    //Use one method with parameter to take full array from main function to sort.
    //No need to return anything from method. Just print the sorted array.
    https://ideone.com/2x8pLR

    ReplyDelete
  107. MD.Alamin
    ID.201910261
    CSE(60th)
    //C++ program to count word and sentence from a file.
    //Show the use of Constructor and Destructor effectively.
    // Use constructor to read from file and use method to display output to the screen.
    #include
    using namespace std;
    class A
    {
    public:
    ifstream file1;
    string line;
    int cw=0,cs=0;
    A()
    {
    cout<<"\n-------------------Constructor----------------\n";}

    void filein()

    {
    file1.open("alamin.txt");
    file1>>line;
    if(file1.is_open())
    {
    while(getline(file1,line))

    {

    for(int i=0;i<line.size();i++)
    {

    if(line[i]==' ') //words count
    {
    cw++;
    }
    else if(line[i]=='.'||line[i]=='?'||line[i]=='!') //sentence count
    {
    cs++;
    }
    }
    }
    }

    cout<<"Words : "<<cw<<"\nSentences : "<<cs;

    file1.close();

    }
    ~A()
    {
    cout<<"\n\n-------------------Distructor----------------\n";
    }





    };

    int main()

    {
    A obj;

    obj.filein();

    }

    ReplyDelete
  108. This comment has been removed by the author.

    ReplyDelete
  109. Md Rabiul Auwal
    ID.201911082
    CSE(60th)
    //C++ program to count word and sentence from a file.
    //Show the use of Constructor and Destructor effectively.
    // Use constructor to read from file and use method to display output to the screen.
    #include
    using namespace std;
    class A
    {
    public:
    ifstream file1;
    string line;
    int cw=0,cs=0;
    A()
    {
    cout<<"\n-------------------Constructor----------------\n";}

    void filein()

    {
    file1.open("rabiul.txt");
    file1>>line;
    if(file1.is_open())
    {
    while(getline(file1,line))

    {

    for(int i=0;i<line.size();i++)
    {

    if(line[i]==' ') //words count
    {
    cw++;
    }
    else if(line[i]=='.'||line[i]=='?'||line[i]=='!') //sentence count
    {
    cs++;
    }
    }
    }
    }

    cout<<"Words : "<<cw<<"\nSentences : "<<cs;

    file1.close();

    }
    ~A()
    {
    cout<<"\n\n-------------------Distructor----------------\n";
    }





    };

    int main()

    {
    A obj;

    obj.filein();

    }

    ReplyDelete
  110. Farzana Akter
    id:201811155
    //C++ program for Bubble Sort of a given data from user.
    //Use one method with parameter to take full array from main function to sort.
    deone.com/V5oHKM
    //No need to return anything from method. Just print the sorted array.

    ReplyDelete
  111. Farzana Akter
    ID:201811155
    c++ program for Binary Search implementation.
    Use Multilevel Inheritance.
    https://ideone.com/TRf8EP

    ReplyDelete
  112. Sharmin Akter
    ID:201910106
    Count number of students above,below and average students Using "C++ Programming"
    Use Multilevel Inheritance
    https://ideone.com/0xQxW2

    ReplyDelete
  113. Farzana Akter
    id.201811155
    Batch 57

    Descending an Array using "C++ Programming". Use Constructor.
    https://ideone.com/AmhrrB

    ReplyDelete
  114. Farzana Akter
    id:201811155
    // Constants usage in "C++ Programming". Use Encapsulation.
    https://ideone.com/L0s5f6

    ReplyDelete
  115. Farzana ritu
    ID:201811155
    Write a demo "C++ Program" which represent the ATM transaction. Use Data Abstraction.

    ReplyDelete
  116. This comment has been removed by the author.

    ReplyDelete
  117. This comment has been removed by the author.

    ReplyDelete
  118. HW:8- addition of two numbers without using arithmetic operator like "+" using C++ programming.
    Name- Mohima akter
    Id-201811112,batch-57th

    https://ideone.com/JJ4QYG

    ReplyDelete
  119. Farzana Akter
    Id : 201811155


    Addition of two numbers without using arithmetic operator as like "+" using "C++ Programming" Use Method with parameter.
    https://ideone.com/c0T1JE

    ReplyDelete
  120. Farzana Akter
    id:201811155
    Add two Matrices and store the result into another Matrices using "C++ Programming" . Use at least one Method with return.
    https://ideone.com/Oc4ozi

    ReplyDelete
  121. Name Towhidul Islam
    Id-201811105,batch-57th

    HW9: ATM transection demo.

    https://ideone.com/eR8SU3

    ReplyDelete
  122. This comment has been removed by the author.

    ReplyDelete
  123. Hw10: Descending an array using c++
    Name: Towhidul Islam
    Id-201811105,batch-57th

    https://ideone.com/7DDGFu

    ReplyDelete
  124. Hw10: An array in descending order using c++.
    Name: Mohima akter
    Id:201811112,batch-57th

    https://ideone.com/QqoLca

    ReplyDelete

  125. HW9: demo of atm transaction using c++ and abstraction.
    Name: Mohima akter
    Id-201811112,batch-57th

    https://ideone.com/zZyRa3

    ReplyDelete
  126. Name-Towhidul Islam
    ID-201811105,batch-57th

    HW11-Constant using in c++ programming.

    https://ideone.com/RPFNSz

    ReplyDelete
  127. Name-Mohima Akter
    Id-201811112,batch-57th

    HW-11 Constant using in c++.

    https://ideone.com/Gslz3g

    ReplyDelete
  128. This comment has been removed by the author.

    ReplyDelete
  129. Name-Mohima Akter,
    Id-201811112,batch-57th
    Hw12-Add two matrices and store the result into another matrices using c++ programming.

    https://ideone.com/3putfu


    **************** all solved*************
    The End

    ReplyDelete
  130. HW12-Add 2 matrices and store the result into another using C++.
    Name-Towhidul Islam
    Id-201811105,batch-57th

    https://ideone.com/crgeeE


    +++++++++++ all problem submitted +++++++++++

    ReplyDelete
  131. MD Aminul Islam Anik
    ID: 201910353
    60th batch

    Lab work 03
    Problem 02:

    //C++ program to count Vowel and Consonant from a sentence.
    //Read the sentence from a file. Use Constructor to read from file.
    //Use Method to show output to the user.

    https://ideone.com/rotNmE

    ReplyDelete
  132. MD Aminul Islam Anik
    ID: 201910353
    60th batch

    Lab work 03
    Problem 01:

    //C++ program to count word and sentence from a file.
    //Show the use of Constructor and Destructor effectively.
    // Use constructor to read from file and use method to display output to the screen.

    https://ideone.com/UFjLks

    ReplyDelete
    Replies
    1. Name: Md.ali zinnah
      Id: 201910567
      Batch: 60th
      //C++ program to count word and sentence from a file.
      //Show the use of Constructor and Destructor effectively.
      // Use constructor to read from file and use method to display output to the screen.


      https://ideone.com/7kCKws

      Delete
  133. MD Aminul Islam Anik
    ID: 201910353
    60th batch

    Lab work 03
    Problem 03:

    //C++ program for String Array sorting using bubble sort algorithm.
    //Show the use of multiple class here. One class must have minimum one method.

    https://ideone.com/686ijt

    ReplyDelete
  134. MD Aminul Islam Anik
    ID: 201910353
    60th batch

    Lab work 03
    Problem 04:

    //C++ program for Bubble Sort of a given data from user.
    //Use one method with parameter to take full array from main function to sort.
    //No need to return anything from method. Just print the sorted array.

    https://ideone.com/OAOZxf

    ReplyDelete
  135. MD Aminul Islam Anik
    ID: 201910353
    60th batch

    Lab work 03
    Problem 05:

    C++ program for Bubble Sort. Use Multiple Inheritance with Pointer Array.

    https://ideone.com/hsa0Ob

    ReplyDelete
  136. MD Aminul Islam Anik
    ID: 201910353
    60th batch

    Lab work 03
    Problem 06:
    c++ program for Binary Search implementation.
    Use Multilevel Inheritance.

    https://ideone.com/2ZOyxy

    ReplyDelete
  137. MD Aminul Islam Anik
    ID: 201910353
    60th batch

    Lab work 03
    Problem 07:

    Count number of students above,below and average students Using "C++ Programming"
    Use Multilevel Inheritance.

    https://ideone.com/gpgMoe

    ReplyDelete
  138. MD Aminul Islam Anik
    ID: 201910353
    60th batch

    Lab work 03
    Problem 08:

    Constants usage in "C++ Programming". Use Encapsulation

    https://ideone.com/mSfVvi

    ReplyDelete
  139. MD Aminul Islam Anik
    ID: 201910353
    60th batch

    Lab work 03
    Problem 09:

    "C++ Program" which represent the ATM transaction. Use Data Abstraction.

    https://ideone.com/zGazyg

    ReplyDelete
  140. MD Aminul Islam Anik
    ID: 201910353
    60th batch

    Lab work 03
    Problem 10:

    Descending an Array using "C++ Programming". Use Constructor.

    https://ideone.com/wTHV0z

    ReplyDelete
  141. MD Aminul Islam Anik
    ID: 201910353
    60th batch

    Lab work 03
    Problem 11:

    Addition of two numbers without using arithmetic operator as like "+" using "C++ Programming" Use Method with parameter.

    https://ideone.com/u5S1Yz

    ReplyDelete
  142. MD Aminul Islam Anik
    ID: 201910353
    60th batch

    Lab work 03
    Problem 12:

    Add two Matrices and store the result into another Matrices using "C++ Programming" . Use at least one Method with return type.

    https://ideone.com/92EQkw

    ReplyDelete
  143. Addition of two numbers without using arithmetic operator as like "+" using "C++ Programming" Use Method with parameter.

    Md Rabiul Auwal
    id 201911082
    CSE 60th
    #include
    using namespace std;
    class R
    {
    public:
    int sum;
    R(int a,int b)
    {
    sum = a - (-b);
    cout<<"\nSum of two numbers is: "<>m;
    cout<<"Enter the second number: ";
    cin>>n;
    R obj(m,n);

    return 0;

    }

    ReplyDelete
  144. Write a demo "C++ Program" which represent the ATM transaction. Use Data Abstraction.

    Md Rabiul Auwal
    id 201911082
    CSE 60th

    #include
    using namespace std;
    class Rabiul
    {
    public:
    int choice,a=10000,b;
    Rabiul()
    {

    cout<<"\n********Welcome to ATM Service**************\n";
    cout<<"1. Credit\n";
    cout<<"2. Debit\n";
    cout<<"3. Check Balance\n\n";
    cout<<"******************​**************************​\n\n";
    cout<<"Enter your choice: ";
    cin>>choice;

    }
    int out()
    {

    switch(choice)
    {
    case 1:
    cout<<"\n\nEnter credit amount :";
    cin>>b;
    a=a+b;
    cout<<"\n\nNew amount : "<>b;
    if(a>=b)
    {
    a=a-b;
    cout<<"\n\nNew amount : "<<a;
    }
    else
    {
    cout<<"\n\nInsufficient amount in your account.\n";
    }
    break;
    case 3:
    cout<<"\n\nAmount in your account : "<<a;
    break;
    default:
    cout<<"\n\nInvalid Choice.";
    }
    }

    ~Rabiul()
    {
    cout<<"\n\nThank you for using ATM.\n"
    "Have a nice day.\n\n";
    cout<<"*************[ The End ]*************\n\n";
    }

    };
    int main()
    {
    rabiul obj;
    obj.out();
    }

    ReplyDelete
  145. // Constants usage in "C++ Programming". Use Encapsulation
    Md Rabiul Auwal
    id 201911082
    CSE 60th
    #include
    #define extra 5


    using namespace std;
    class Rabiul
    {

    private:
    int marks;


    public:
    int new_marks;
    int inp(int n)
    {
    marks=n;
    }
    int out()
    {
    if(marks<40)
    {
    new_marks=marks+extra;
    if(new_marks>=40)
    {
    cout<<"\nYou had failed in the exam.\n\n"
    "I give you extra 5 marks.\n\n"
    "Now you have passed in the exam.\n\n"
    "You have to read attentively.\n\n";
    }
    else
    {
    cout<<"\nYou had failed in the exam.\n\n"
    "I give you extra 5 marks.\n\n"
    "Now you have failed again.\n\n"
    "Very weak.\n\n"
    "You have to study more and more.\n\n";
    }
    }
    else
    {
    cout<<"\nYou have passed in the exam.\n\n"
    "Good job my boy.\n\n";
    }
    }
    };
    int main()
    {
    int a;
    cout<<"Enter your marks :";
    cin>>a;
    Rabiul obj;
    obj.inp(a);
    obj.out();
    }

    ReplyDelete
  146. Name : Md.ali zinnah
    id : 201910567
    Batch: 60th
    problem: 2

    //C++ program to count Vowel and Consonant from a sentence.
    //Read the sentence from a file. Use Constructor to read from file.
    //Use Method to show output to the user.


    https://ideone.com/KgfaMZ

    ReplyDelete
  147. Name: Md.ali zinnah
    Id: 201910567
    Batch: 60th
    Problem :3

    //C++ program for String Array sorting using bubble sort algorithm.
    //Show the use of multiple class here. One class must have minimum one method.


    https://ideone.com/sOs5FO

    ReplyDelete
  148. Jhumur Akter
    ID.201910687
    60th
    //C++ program to count word and sentence from a file.
    //Show the use of Constructor and Destructor effectively.
    // Use constructor to read from file and use method to display output to the screen.
    #include
    using namespace std;
    class A
    {
    public:
    ifstream file1;
    string line;
    int cw=0,cs=0;
    A()
    {
    cout<<"\n-------------------Constructor----------------\n";}

    void filein()

    {
    file1.open("alamin.txt");
    file1>>line;
    if(file1.is_open())
    {
    while(getline(file1,line))

    {

    for(int i=0;i<line.size();i++)
    {

    if(line[i]==' ') //words count
    {
    cw++;
    }
    else if(line[i]=='.'||line[i]=='?'||line[i]=='!') //sentence count
    {
    cs++;
    }
    }
    }
    }

    cout<<"Words : "<<cw<<"\nSentences : "<<cs;

    file1.close();

    }
    ~A()
    {
    cout<<"\n\n-------------------Distructor----------------\n";
    }





    };

    int main()

    {
    A obj;

    obj.filein();

    }

    ReplyDelete
  149. Jhumur Akter
    ID.201910687
    60th
    //C++ program to count Vowel and Consonant from a sentence. Read the sentence from a file.
    //Use Constructor to read from file.
    // Use Method to show output to the user.

    #include
    using namespace std;
    class A
    {
    public:
    ifstream file1;
    string str;
    int cv=0,cs=0;
    A()
    {
    cout<<"\n-------------------Constructor----------------\n";

    }
    void filein()
    {
    file1.open("vc.txt");
    while(file1>>str)
    {
    for(int i = 0; i='a'&& str[i]<='z') //consonant count
    {
    cs++;
    }
    }
    }

    cout<<"Vowel : "<<cv<<"\nConsonant : "<<cs;
    }






    };

    int main()
    {
    A obj;
    obj.filein();
    }

    ReplyDelete
  150. Name:Md.ali zinnah
    Id: 201910567
    Batch:60th
    Problem: 4

    //C++ program for Bubble Sort of a given data from user.
    //Use one method with parameter to take full array from main function to sort.
    //No need to return anything from method. Just print the sorted array.


    //C++ program for Bubble Sort of a given data from user.
    //Use one method with parameter to take full array from main function to sort.
    //No need to return anything from method. Just print the sorted array.

    https://ideone.com/MyMFuv

    ReplyDelete
  151. Jhumur Akter
    ID.201910687
    60th
    Use one method with parameter to take full array from main function to sort. No need to return anything from method. Just print the sorted array.

    https://ideone.com/VVOv11

    ReplyDelete
  152. Name: Md.ali zinnah
    Id: 201910567
    Batch: 60th
    problem: 5

    C++ program for Bubble Sort. Use Multiple Inheritance with Pointer Array.


    https://ideone.com/xrdBzq

    ReplyDelete
  153. Jhumur Akter
    ID.201910687
    60th
    https://ideone.com/zJYcpr

    ReplyDelete
  154. Name: Md.ali zinnah
    Id: 201910567
    Batch: 60th
    problem: 6

    c++ program for Binary Search implementation.
    Use Multilevel Inheritance.

    https://ideone.com/mkeFax

    ReplyDelete
  155. Jhumur Akter
    ID.201910687
    60th
    https://ideone.com/0EQ0B9

    ReplyDelete
  156. Name: Md.ali zinnah
    id: 201910567
    Batch: 60th
    Problem:7

    //Count number of students above,below and average students Using "C++ Programming"
    Use Multilevel Inheritance.


    https://ideone.com/3npPIC

    ReplyDelete
  157. Jhumur Akter
    ID.201910687
    60th
    https://ideone.com/rocasz

    ReplyDelete
  158. Name: Md.ali zinnah
    Id: 201910567
    Batch:60th
    problem: 8


    //Constants usage in "C++ Programming". Use Encapsulation

    https://ideone.com/WvVLuJ

    ReplyDelete
  159. Name: Md.ali zinnah
    id: 201910567
    Batch: 60th

    problem 9

    "C++ Program" which represent the ATM transaction. Use Data Abstraction.

    https://ideone.com/afmDJF

    ReplyDelete
  160. Jhumur Akter
    ID.201910687
    60th
    Count number of students above,below and average students Using "C++ Programming"
    Reference: http://c-programming-source.blogspot.com/2014/12/count-number-of-students-abovebelow-and.html. Use Multilevel Inheritance.

    https://ideone.com/3xvxT8

    ReplyDelete
  161. Name: Md.ali zinnah
    id: 201910567
    Batch: 60th
    problem: 10

    //Descending an Array using "C++ Programming". Use Constructor.


    https://ideone.com/9GsWJw

    ReplyDelete
  162. Jhumur Akter
    ID.201910687
    60th
    Addition of two numbers without using arithmetic operator as like "+" using "C++ Programming" Use Method with paramete

    https://ideone.com/6DREHL

    ReplyDelete
  163. Write a demo "C++ Program" which represent the ATM transaction. Use Data Abstraction.
    Jhumur Akter
    ID.201910687
    60th

    https://ideone.com/6C3iLQ

    ReplyDelete
  164. Jhumur Akter
    ID.201910687
    60th
    Add two Matrices and store the result into another Matrices using "C++

    https://ideone.com/8o9Byi

    ReplyDelete
  165. Name: Md.ali zinnah
    Id: 201910567
    Batch: 60th
    problem: 11

    Addition of two numbers without using arithmetic operator as like "+" using "C++ Programming" Use Method with parameter.

    https://ideone.com/Jnu85m

    ReplyDelete
  166. Name: Md.ali zinnah
    Id:201910567
    Bacth:60th

    problem:12

    //Add two Matrices and store the result into another Matrices using "C++ Programming" . Use at least one Method with return type.

    https://ideone.com/LChVSj

    ReplyDelete
  167. Kawsar ahmed
    Id.201910560
    60th
    https://ideone.com/eF2tvH

    ReplyDelete
  168. Robin Ahmed
    ID:201910109

    #include
    using namespace std;
    class r
    {
    public:
    int i,j,temp;
    void bs(int a,int b[])
    {
    for(i=1;ib[j+1])
    {
    temp=b[j];
    b[j]=b[j+1];
    b[j+1]=temp;
    }
    }
    cout<<"\nArray after bubble sort:";
    for(i=0;i>d;
    cout<>b[i];
    r obj;
    obj.bs(d,b);
    }

    ReplyDelete
  169. //C++ program to count Vowel and Consonant from a sentence. Read the sentence from a file.
    //Use Constructor to read from file.
    // Use Method to show output to the user.
    Kawsar ahmed
    Id.201910560
    60th
    https://ideone.com/onrLDi

    ReplyDelete
  170. Use one method with parameter to take full array from main function to sort. No need to return anything from method. Just print the sorted array.
    Kawsar ahmed
    Id.201910560
    60th
    https://ideone.com/qq9SGK

    ReplyDelete
  171. Kawsar ahmed
    Id.201910560
    60th
    https://ideone.com/po35gf

    ReplyDelete
  172. Kawsar ahmed
    Id.201910560
    60th
    https://ideone.com/DncnPr

    ReplyDelete
  173. // Descending an Array using "C++ Programming". Use Constructor.

    md Rabiul Auwal
    id 201911082
    CSE 60th

    #include
    using namespace std;
    class r
    {
    public:
    int i,j,temp;
    r(int n,int a[])
    {
    for(i=1;i>d;
    cout<>b[i];
    r obj(d,b);
    }

    ReplyDelete
  174. Kawsar ahmed
    Id.201910560
    60th
    https://ideone.com/H2iSB6

    ReplyDelete
  175. C++ program for Bubble Sort. Use Multiple Inheritance with Pointer Array.

    Md Rabiul Auwal
    id 201911082
    CSE 60th

    #include
    using namespace std;
    class R
    {
    public:
    int n,i;
    int inp()
    {
    cout<<"\n\nEnter the size of array: ";
    cin>>n;
    cout<>*p;
    p++;
    }
    p=a;
    for(i=1;i>*p;
    p++;
    }
    p=a;
    for(i=1;i*(p+j))
    {
    temp=*(p+i);
    *(p+i)=*(p+j);
    *(p+j)=temp;
    }
    }
    cout<<"\nArray after bubble sort in descending order:";
    for(i=0;i>z;

    if(z==1)
    {
    A obj;
    obj.inp();
    obj.a();
    }
    else
    {
    B obj;
    obj.inp();
    obj.b();
    }
    }

    ReplyDelete
  176. Count number of students above,below and average students Using "C++ Programming"
    Use Multilevel Inheritance.

    Md Rabiul Auwal
    id 201911082
    CSE 60th

    #include
    using namespace std;
    class R
    {
    public:
    int i,n;
    int inp()
    {

    cout<<"Enter the students number:";
    cin>>n;

    }
    };
    class A:public R
    {
    public:
    int x=0,y=0,z=0;
    int cal()
    {
    int a[n];
    for(i=0;i>a[i];
    }
    for(i=0;i60)
    x++;
    else if(a[i]<60)
    y++;
    else
    z++;
    }
    }


    };
    class B:public A
    {
    public:
    int out()
    {
    cout<<"\nNUMBER OF AVERAGE STUDENTS ARE:"<<z<<endl;
    cout<<"\nNUMBER OF ABOVE AVERAGE STUDENTS ARE:"<<x<<endl;
    cout<<"\nNUMBER OF BELOW AVERAGE STUDENTS ARE:"<<y<<endl;
    }
    };

    int main()
    {
    B obj;
    obj.inp();
    obj.cal();
    obj.out();

    }

    ReplyDelete
  177. Md Rabiul Auwal
    Batch: 60th
    id 201911082

    c++ program for Binary Search implementation.
    Use Multilevel Inheritance.


    #include
    using namespace std;
    class r
    {
    public:
    int n, i,arr[100], number, first, last, middle;
    void inp()
    {
    cout<<"\nHow many elements would you like to enter?:";
    cin>>n;
    }
    };
    class A:public r
    {
    public:
    int a()
    {
    cout<<"\n***Enter "<>arr[i];
    }
    }
    };
    class B:public A
    {
    public:
    int b()
    {
    cout<<"\nEnter the number that you want to search:";
    cin>>number;
    first = 0;
    last = n-1;
    middle = (first+last)/2;
    }
    };
    class C:public B
    {
    public:
    int c()
    {
    while (first <= last)
    {
    if(arr[middle] < number)
    {
    first = middle + 1;

    }
    else if(arr[middle] == number)
    {
    cout< last)
    {
    cout<>arr[i];
    }
    }
    };
    class E:public D
    {
    public:
    int e()
    {
    cout<<"\nEnter the number that you want to search:";
    cin>>number;
    last= 0;
    first= n-1;
    middle = (first+last)/2;
    }
    };
    class F:public E
    {
    public:
    int f()
    {
    while (last<=first)
    {
    if(arr[middle] > number)
    {
    last = middle + 1;

    }
    else if(arr[middle] == number)
    {
    cout<>z;
    if(z==1)
    {
    C obj;
    obj.inp();
    obj.a();
    obj.b();
    obj.c();
    }
    else
    {
    F obj;
    obj.inp();
    obj.d();
    obj.e();
    obj.f();
    }

    }

    ReplyDelete

  178. //C++ program for String Array sorting using bubble sort algorithm.
    //Show the use of multiple class here. One class must have minimum one method.

    Md Rabiul Auwal
    id 201911082
    CSE 60th

    #include
    using namespace std;
    class r
    {
    public:
    int i,j,temp,n;
    string a;
    r()
    {
    cout<<"Enter a word: ";
    cin>>a;
    n=a.size();
    }
    };

    class s:public r
    {
    public:
    void uy()
    {
    for(i=1;itolower(a[j+1]))
    {
    temp=a[j];
    a[j]=a[j+1];
    a[j+1]=temp;
    }
    }
    cout<<"\nArray after bubble sort:";
    for(i=0;i<n;++i)
    cout<<" "<<a[i];
    cout<<endl;

    }
    };

    int main()
    {
    s obj;
    obj.uy();
    }

    ReplyDelete
  179. //C++ program for Bubble Sort of a given data from user.
    //Use one method with parameter to take full array from main function to sort.
    //No need to return anything from method. Just print the sorted array.



    Md Rabiul Auwal
    id 201911082
    CSE 60th

    #include
    using namespace std;
    class r
    {
    public:
    int i,j,temp;
    void bs(int n,int a[])
    {
    for(i=1;ia[j+1])
    {
    temp=a[j];
    a[j]=a[j+1];
    a[j+1]=temp;
    }
    }
    cout<<"\nArray after bubble sort:";
    for(i=0;i>d;
    cout<>b[i];
    r obj;
    obj.bs(d,b);
    }

    ReplyDelete

  180. //C++ program for Bubble Sort of a given data from user.
    //Use one method with parameter to take full array from main function to sort.
    //No need to return anything from method. Just print the sorted array.


    Md Rabiul Auwal
    id 201911082
    CSE 60th

    #include
    using namespace std;
    class r
    {
    public:
    int i,j,temp;
    void bs(int n,int a[])
    {
    for(i=1;ia[j+1])
    {
    temp=a[j];
    a[j]=a[j+1];
    a[j+1]=temp;
    }
    }
    cout<<"\nArray after bubble sort:";
    for(i=0;i>d;
    cout<>b[i];
    r obj;
    obj.bs(d,b);
    }

    ReplyDelete
  181. This comment has been removed by the author.

    ReplyDelete
  182. Md. Abdul Karim
    Id: 201910508
    60th batch
    //C++ program to count Vowel and Consonant from a sentence.
    //Read the sentence from a file. Use Constructor to read from file.
    //Use Method to show output to the user.


    https://ideone.com/incxN2

    ReplyDelete
  183. Md. Abdul Karim
    Id: 201910508
    60th batch

    //C++ program to count word and sentence from a file.
    //Show the use of Constructor and Destructor effectively.
    // Use constructor to read from file and use method to display output to the screen.

    https://ideone.com/Geo6pt

    ReplyDelete
  184. Md. Abdul Karim
    Id: 201910508
    60th batch



    //C++ program for String Array sorting using bubble sort algorithm.
    //Show the use of multiple class here. One class must have minimum one method.
    https://ideone.com/dMqOtQ

    ReplyDelete
  185. Md. Abdul Karim
    Id: 201910508
    60th batch

    //C++ program for Bubble Sort of a given data from user.
    //Use one method with parameter to take full array from main function to sort.
    //No need to return anything from method. Just print the sorted array.

    https://ideone.com/MZMN1n

    ReplyDelete
  186. Md. Abdul Karim
    Id: 201910508
    60th batch

    C++ program for Bubble Sort. Use Multiple Inheritance with Pointer Array.
    https://ideone.com/9rIPjj

    ReplyDelete
  187. Md. Abdul Karim
    Id: 201910508
    60th batch
    c++ program for Binary Search implementation.
    Use Multilevel Inheritance.

    https://ideone.com/6mjj4t

    ReplyDelete
  188. Md. Abdul Karim
    Id: 201910508
    60th batch

    Count number of students above,below and average students Using "C++ Programming"
    Use Multilevel Inheritance
    https://ideone.com/6PDIiB

    ReplyDelete
  189. Md. Abdul Karim
    Id: 201910508
    60th batch

    Constants usage in "C++ Programming". Use Encapsulation

    https://ideone.com/rMpsyk

    ReplyDelete
  190. Md. Abdul Karim
    Id: 201910508
    60th batch
    "C++ Program" which represent the ATM transaction. Use Data Abstraction.

    https://ideone.com/QR6FOq

    ReplyDelete
  191. Md. Abdul Karim
    Id: 201910508
    60th batch
    Descending an Array using "C++ Programming". Use Constructor.
    https://ideone.com/zZkSnk

    ReplyDelete
  192. Md. Abdul Karim
    Id: 201910508
    60th batch

    Addition of two numbers without using arithmetic operator as like "+" using "C++ Programming" Use Method with parameter.
    https://ideone.com/5TQu1B

    ReplyDelete
  193. Md. Abdul Karim
    Id: 201910508
    60th batch
    Add two Matrices and store the result into another Matrices using "C++ Programming" . Use at least one Method with return type.


    https://ideone.com/fMPcEc

    ReplyDelete

Comment Here