Object Oriented Programming (C++ & Java)
C++ & Java Programming Syllabus related to Savitribai Phule Pune University (SPPU, Pune)
Saturday, 22 September 2018
Wednesday, 31 January 2018
Welcome to Object Oriented Programming learning Blog
Syllabus
[204190] Object Oriented Programming
Credit: Th-03, Pr-02
Teaching
Scheme:
Theory: 3
Hrs/ Week
Practical : 4
Hr/Week
|
Examination
Scheme:
Online: 50
Marks
Paper: 50
Marks
Oral : 50
Marks
|
|||||||||||||||
Course Objectives:
• Make the
students familiar with basic concepts and techniques of object oriented
programming in C++ & Java.
• Develop an
ability to write programs in C++ and Java for problem solving.
Course Outcomes:
Upon successful
completion of this course, students should be able to:
1. Describe the
principles of object oriented programming.
2. Apply the
concepts of data encapsulation, inheritance in C++.
3. Understand
basic program constructs in Java
4. Apply the
concepts of classes, methods and inheritance to write programs Java.
5. Use arrays,
vectors and strings concepts and interfaces to write programs in Java.
6. Describe and
use the concepts in Java to develop user friendly program,
|
||||||||||||||||
Principles of
OOP: Software crisis, Software evolution, OOP paradigm, Basic Concepts of
OOP, Benefits & applications of OOP.
Beginning with
C++: What is C++, Applications of C++, A Simple C++ Program, More C++
statements.
Moving from C to
C++: Declaration of variable, Reference variables, Scope resolution operator,
Member dereferencing operator, memory management operators.
Functions in
C++: Function prototyping, Call by reference.
|
||||||||||||||||
Classes &
Objects: Specifying a class, Defining member functions, A C++ program with
class, Making an outside function inline, Nesting of member function, Private
member function, Arrays within class, Member allocation for objects, Arrays
of objects, Objects as function arguments.
Constructors
& Destructors: Constructors, Parameterized constructors, Multiple
constructors in a class, Constructors with default arguments
|
||||||||||||||||
|
||||||||||||||||
List of Practical:
(Perform
any 4 from group I and any 12 from group II)
|
||||||||||||||||
Group
I
|
||||||||||||||||
1.
Write a program in C++ to implement database of persons having different
profession e,g. engineer, doctor, student, laborer etc. using the concept of
multiple inheritance. The objective of this assignment is to learn the
concepts of inheritance.
|
||||||||||||||||
2.
Write a 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 number representation and the operations to be performed. The
objective of this assignment is to learn the concepts classes and 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 and objects, constructors and destructors.
|
||||||||||||||||
5. Write a
program in C++ to perform following operations on complex numbers Add,
Subtract, Multiply, Divide. Use operator overloading for these operations.
The objective of this assignment is to learn the concepts operator
overloading.
|
||||||||||||||||
Group
II
|
||||||||||||||||
6. Write some
simple programs in Java such as
i) To find
factorial of number.
ii) To display
first 50 prime numbers.
iii) To find sum
and average of N numbers.
|
||||||||||||||||
7. 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.
|
||||||||||||||||
8. 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 methods 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 Rectangle”.
|
||||||||||||||||
9. Write
Programs in Java to sort i) List of integers ii) List of names. The objective
of this assignment is to learn Arrays and Strings in Java
|
||||||||||||||||
10. Write a
Program in Java to add two matrices. The objective of this assignment is to
learn Arrays in Java
|
||||||||||||||||
11. Write a
program in Java to create a player class. Inherit the classes Cricket_player,
Football_player and Hockey_player from player class. The objective of this
assignment is to learn the concepts of inheritance in Java.
|
||||||||||||||||
12. Write a Java
program which imports user defined package and uses members of the classes
contained in the package.
|
||||||||||||||||
13. Write a Java
program which implements interface.
|
||||||||||||||||
14. Create an
applet with three text Fields and four buttons add, subtract, multiply and
divide. User will enter two values in the Text Fields. When any button is
pressed, the corresponding operation is performed and the result is displayed
in the third Text Fields.
|
Subscribe to:
Posts (Atom)