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


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

2 comments:

  1. It was nice to read your blog. If anyone needs case study help then visit to our website:- Assignment Help Australia . We provide all type of case study assignments for MBA, Nursing, Laws and Engineering students.
    You can visit us at the given link:-
    Case Study Help
    Assignment Help
    MBA Assignment Help
    Assignment Samples
    Case Study Writers

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

    ReplyDelete