Professional Documents
Culture Documents
Assignment 1
Assignment 1
ASSIGNMENT NO # 01
Sub- Object Oriented Programming Using Java
B. Tech, 3rd Semester
Marks COLevel
1 Identify the object oriented features and explain them with suitable real life 10 1 2
examples
3 Define a student class with essential data members initializing with various
constructors. Write suitable methods to find and display the student results. Create 10 2 3
an array of 100 students and display their results with a final report showing
number of pass students and fail students.
[Note- use static variable to count the number of pass or failed students and static
method if required ]
4 Define the role of constructor in java and differentiate between default constructor 10 2 3
and parameterized constructors with suitable examples.
WAP to read two complex numbers from user and to perform operation (+, -, *) on them. 10 2 3
5
Input: Output:
Page1
5 C. No. 1: 5 + i 7
7 C. No. 2: 10 + i 12
10 Sum: 15 + i 19
12 Difference: -5 - i 5
Product: -34 + i 130