Search The Blog

Mar 28, 2017

OBJECT ORIENTED PROGRAMMING

                                   Object Oriented Programming (OOP)

                                                                 Second Year (SEM-4)
                                                                      Programs Set

----------------------------------------------------------------------------------------------------------------------------------

      1. Write a program in C++ to implement database of persons having different professions e.g   Engineer, Doctor, Student, Labourer, etc. using the concept of Multiple Inheritance. The objective of                                          this assignment is to learn the concepts of Inheritance.


 2. Write the program in C++ to sort the numbers in an Array using separate functions for read, display, sort and swap. The objective of this assignment is to learn the concepts of input, output functions, call_by_reference in C++.

    3. Write a program in C++ to Perform Following operations on complex numbers Add, Subtract, Multiply, Divide, Complex_Conjugate. Design the class for complex numbers representation and the operations to be performed. The objective of this assignment is to learn the concepts of classes & Objects.


4. Write a program in C++ to implement Stack. Design the class for stack and the operations to be performed on stack. Use Constructors and Destructors. The objective of this assignment is to learn the concepts classes, objects, constructors and Destructors.


5. Write some simple programs in JAVA such as
  • Factorial of Numbers
  • Display first 50 prime Numbers
  • Sum & Average of N numbers 

6. Write a program in JAVA to implement a Calculator with simple Arithmetic Operations such as Add, Subtract, Multiply, Divide, Factorial, etc. using switch case and other simple Java statements. The objective of this assignment is to learn Constants, Variables and Data types, Operators and Expressions, Decision making statements in Java.


7. Write a program in JAVA with class Rectangle with the data fields width, length, area, and colour. The length, width and area are of double type and colour is of string type. The method are get_length(), get_width(), get_colour() and find_area(). Create two objects of Rectangle and compare their area and colour. If the area and colour both are the same for the objects then display "Matching Rectangles", otherwise display "Non-matching Rectangles".



8. Write Programs in JAVA to sort-
  • List of Integers
  •      List of Names  
The objective of this assignment is to learn Arrays and Strings in Java.  

Download this Program

9. Write a Program in JAVA to add two Matrices. The objective of this assignment is to learn Arrays in Java.

Download this Program

10. Write a program in JAVA to crate a player class. Inherit the classes Cricket_player, Football_player from player class. The objective of this assignment is to learn the concepts of Inheritance in Java.

Download this Program

11. Write a JAVA  program which imports user defined package and uses members of the classes contained in the package.

Download this Program

12. Write a JAVA program which implements Interface.

Download this Program

13. Create an JAVA applet with three text fields and four buttons Add, Subtract, Multiply, Divide. User will enter two values in the Text field. When any button is pressed, the corresponding operation id performed and the result is displayed in the third Text Field.

Download this Program

14. Write a JAVA program which uses try and catch for Exception Handling.

Download this Program

15. Write a program to Implement stack or any other data structure in JAVA.

Download this Program

16. Write a program to Implement Addition, Subtraction and Multiplication of two complex numbers in JAVA.

Download this Program

17. Design Hotel Management System in JAVA. This should perform following operations-
(Abet Problem)
  • Reservation
  • Registration
  • Billing and Clearance
  • Check Out 
Download this Program


--------------------------------------------------------------------------------------------------------------------

Mar 27, 2017

DATA STRUCTURE & ALGORITHM

        

                                        DATA STRUCTURE & ALGORITHM (DSA)

                                                      Second Year(Semester-3)
                                                                         All Programs
--------------------------------------------------------------------------------------------------------------------
  1.  Write C Program to create student Database e.g. Roll No., Name, Percentage marks etc., It should perform following operations.
  • Display the Data in descending order of Marks (Bubble Sort)
  • Display data for Roll Number specified by user (Linear Search)
                                                      Click here to download the Code

      2.  Perform following String Operations without pointers to arrays-
  • Copy 
  • Substring
  • Reverse
  • Palindrome
  • Compare
                                            Click here to download the Code
      3.  Database Management using array of structure with following operations-
  • Create 
  • Display
  • Search
  • Erase
                                                      Click here to download the Code

      4. Program to implement following operations using Singly Link List :
    • Create
    • Display
    • Search
    • Delete
    • Insert
    • Reverse
    • Revert
                                                      Click here to download the Code 

      5. Implementation of Stack using :
                               
      6. Implementation of Queue using :
   
      7. Program to create a Binary Search Tree & Perform following primitive Operations on it :
    • Create
    • Inorder
    • Preorder
    • Postorder
    • Search
                                                      Click here to download the Code

       8. Program to Create a Graph Using Adjacent matrix/adjacency matrix list & Traverse it Using BFS & DFS methods.
                                 
                                                     Click here to download the Code


       9. Write a C program to check the input parenthesis i.e String to be palindrome.If the parenthesis are not closed properly; It should give error "String is not Valid".(Abet Problem)

                                                     Click here to download the Code


---------------------------------------------------------------------------------------