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.




199 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- Mohima Akter
    ID-201811112 batch-57th

    #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
  29. Name- Mohima Akter
    ID-201811112 batch-57th

    #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
  30. Name- Mohima Akter
    ID-201811112 batch-57th
    #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
  31. Name- Mohima Akter
    ID-201811112 batch-57th

    #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
  32. Name-Mohima Akter
    ID- 201811112 batch-57th

    #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
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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
  45. 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
  46. 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
  47. 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
  48. This comment has been removed by the author.

    ReplyDelete
  49. 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
  50. 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
  51. 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
  52. 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
  53. 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
  54. This comment has been removed by the author.

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

    ReplyDelete
  56. 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
  57. This comment has been removed by the author.

    ReplyDelete
  58. 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
  59. 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
  60. 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
  61. 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
  62. 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
  63. 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
  64. 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
  65. 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
  66. 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
  67. Sharmin Akter
    ID:201910106
    c++ program for Binary Search implementation.
    Use Multilevel Inheritance.
    https://ideone.com/M5mSUH

    ReplyDelete
  68. 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
  69. Eva akter
    id:201910819
    c++ program for Binary Search implementation.
    Use Multilevel Inheritance.
    https://ideone.com/ch54O8

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

    ReplyDelete
  71. 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
  72. Eva akter
    id:201910819
    Count number of students above,below and average students Using "C++ Programming"
    Use Multilevel Inheritance.
    https://ideone.com/ss72OV

    ReplyDelete
  73. 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
  74. 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
  75. Md Raihan Molla
    ID : 201910061
    CSE (60th)

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

    Code link:

    https://ideone.com/BYMvLj

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

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

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

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

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

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

    https://ideone.com/N4fkgJ

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

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

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

    ReplyDelete

  84. 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
  85. Md Raihan Molla
    Id : 201910061
    CSE 60th

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

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


    ReplyDelete
  86. 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
  87. 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
  88. 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
  89. 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
  90. Eva akter
    id:201910819
    // Constants usage in "C++ Programming". Use Encapsulation.
    https://ideone.com/iuaBED

    ReplyDelete
  91. 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
  92. This comment has been removed by the author.

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

    ReplyDelete
  94. 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
  95. MD.Alamin Hosen
    ID.201910261
    batch 60th



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

    https://ideone.com/vu4RT4

    ReplyDelete
  96. 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
  97. 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
  98. 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
  99. 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
  100. 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
  101. 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
  102. 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
  103. 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
  104. 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
  105. // 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
  106. 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
  107. Farzana Akter
    id:201811155
    batch:57
    //HW:2 program to count Vowel and Consonant from a sentence.
    https://ideone.com/UGcVmS

    ReplyDelete
  108. 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
  109. Farzana Akter
    id:201811155
    batch:57
    C++ program for Bubble Sort. Use Multiple Inheritance with Pointer Array.

    https://ideone.com/cSnoPX

    ReplyDelete








  110. 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
  111. 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
  112. This comment has been removed by the author.

    ReplyDelete
  113. 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
  114. 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
  115. Farzana Akter
    ID:201811155
    c++ program for Binary Search implementation.
    Use Multilevel Inheritance.
    https://ideone.com/TRf8EP

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

    ReplyDelete
  117. Farzana Akter
    id.201811155
    Batch 57

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

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

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

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

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

    ReplyDelete
  122. 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
  123. 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
  124. 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
  125. Name Towhidul Islam
    Id-201811105,batch-57th

    HW9: ATM transection demo.

    https://ideone.com/eR8SU3

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

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

    https://ideone.com/7DDGFu

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

    https://ideone.com/QqoLca

    ReplyDelete

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

    https://ideone.com/zZyRa3

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

    HW11-Constant using in c++ programming.

    https://ideone.com/RPFNSz

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

    HW-11 Constant using in c++.

    https://ideone.com/Gslz3g

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

    ReplyDelete
  133. 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
  134. 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
  135. 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
  136. 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
  137. 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
  138. 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
  139. 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
  140. 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
  141. 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
  142. 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
  143. 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
  144. 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
  145. 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
  146. 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
  147. 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
  148. 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
  149. // 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
  150. 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
  151. 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
  152. 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
  153. 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
  154. 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
  155. 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
  156. 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
  157. Jhumur Akter
    ID.201910687
    60th
    https://ideone.com/zJYcpr

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

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

    https://ideone.com/mkeFax

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

    ReplyDelete
  160. 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
  161. Jhumur Akter
    ID.201910687
    60th
    https://ideone.com/rocasz

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


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

    https://ideone.com/WvVLuJ

    ReplyDelete
  163. 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
  164. 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
  165. Name: Md.ali zinnah
    id: 201910567
    Batch: 60th
    problem: 10

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


    https://ideone.com/9GsWJw

    ReplyDelete
  166. 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
  167. Write a demo "C++ Program" which represent the ATM transaction. Use Data Abstraction.
    Jhumur Akter
    ID.201910687
    60th

    https://ideone.com/6C3iLQ

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

    https://ideone.com/8o9Byi

    ReplyDelete
  169. 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
  170. 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
  171. Kawsar ahmed
    Id.201910560
    60th
    https://ideone.com/eF2tvH

    ReplyDelete
  172. 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
  173. //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
  174. 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
  175. Kawsar ahmed
    Id.201910560
    60th
    https://ideone.com/po35gf

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

    ReplyDelete
  177. // 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
  178. Kawsar ahmed
    Id.201910560
    60th
    https://ideone.com/H2iSB6

    ReplyDelete
  179. 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
  180. 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
  181. 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

  182. //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
  183. //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

  184. //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
  185. This comment has been removed by the author.

    ReplyDelete
  186. 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
  187. 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
  188. 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
  189. 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
  190. Md. Abdul Karim
    Id: 201910508
    60th batch

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

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

    https://ideone.com/6mjj4t

    ReplyDelete
  192. 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
  193. Md. Abdul Karim
    Id: 201910508
    60th batch

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

    https://ideone.com/rMpsyk

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

    https://ideone.com/QR6FOq

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

    ReplyDelete
  196. 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
  197. 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