BUDGE BUDGE INSTITUTE OF TECHNOLOGY
Affiliated to MAKAUT(formerly WBUT)& Approved by AICTE, NAAC Accredited
Kolkata - 700 137, West Bengal, India
Phone : 033 2482 0676 / 0670
http://www.bbit.edu.in
DEPARTMENTOF
COMPUTER SCIENCE & ENGINEERING
LABORATORY COURSE FILE
DETAILS OF THE COURSE
Academic Year :
COURSE
COURSE TITLE OBJECT ORIENTED PROGRAMMING LAB PCC CS 593
CODE
DEPARTMENT COMPUTER SCIENCE AND ENGINEERING
SEMESTER 5TH
YEAR 3RD
COURSE TYPE CORE COURSE ELECTIVE COURSE
COURSE
2
CREDIT
BUDGE BUDGE INSTITUTE OF TECHNOLOGY
Affiliated to MAKAUT (formerly WBUT) & Approved by AICTE, NAAC Accredited
Kolkata - 700 137, West Bengal, India
LABORATORY NAME-OBJECT ORIENTED PROGRAMMING LAB
COURSE CODE-PCC-CS593
Course Contents
SL NO. Topics PAGE NO.
1 Details of the Course
2 Vision and Mission
3 Program Outcomes (PO’s)
4 Program Specific Outcomes (PSO’s)
5 Program Educational Objectives (PEO’s)
6 Course Objectives and Course Outcomes (COs)
7 Mapping between COs and POs
8 Mapping between COs and PSOs
9 Do Don’t
10 List of Experiments
11 Hardware & Software Specification for the Laboratory
12 Safety Instructions
13 Lab Manual(Sample)
14 Assessment Method for University Lab Examination
Annexure
15 Laboratory Schedule
16 Lesson Plan
17 Student List
18 Practical Continuous Assessment – I , II Marks
19 Rubrics
20 Student Lab Report (Sample)
21 Semester Question Paper
22 Semester answer Sheet (Sample)
23 Final Marks
24 Attendance Register
25 Overall Course Outcome Attainment
2|Page
BUDGE BUDGE INSTITUTE OF TECHNOLOGY
Affiliated to MAKAUT (formerly WBUT) & Approved by AICTE, NAAC Accredited
Kolkata - 700 137, West Bengal, India
LABORATORY NAME-OBJECT ORIENTED PROGRAMMING LAB
COURSE CODE-PCC-CS593
Vision of the Department
To impart quality technical education amongst the individuals, emphasizing on the needs of
industry and to contribute to the society.
Mission of the Department
M1: To prepare Computer Science & Engineering students with competence in basic science &
engineering.
M2: To make the students have a good command on software and hardware development so that
they can succeed in industry or pursue higher studies or become an entrepreneur.
M3: To inculcate the concept of corporate social responsibility among the student community
3|Page
BUDGE BUDGE INSTITUTE OF TECHNOLOGY
Affiliated to MAKAUT (formerly WBUT) & Approved by AICTE, NAAC Accredited
Kolkata - 700 137, West Bengal, India
LABORATORY NAME-OBJECT ORIENTED PROGRAMMING LAB
COURSE CODE-PCC-CS593
Details of the Course
COURSE NAME OBJECT ORIENTED PROGRAMMING LAB
PAPER CODE PCC CS 593
CONTACT HOURS 4 HOURS/WEEK
CREDITS 2
Pre-requisite
1 Understanding of fundamental programming concepts.
2. Familiarity with control structures (loops, conditionals), data types, and basic syntax.
3 Exposure to writing and debugging simple programs.
4 Familiarity with using an integrated development environment (IDE) or a text editor for
writing code.
4|Page
BUDGE BUDGE INSTITUTE OF TECHNOLOGY
Affiliated to MAKAUT (formerly WBUT) & Approved by AICTE, NAAC Accredited
Kolkata - 700 137, West Bengal, India
LABORATORY NAME-OBJECT ORIENTED PROGRAMMING LAB
COURSE CODE-PCC-CS593
Program Outcomes (PO’s)
PROGRAM PROGRAM OUTCOME DETAILS
OUTCOME
Engineering knowledge: Apply the knowledge of Mathematics, Science,
Engineering fundamentals, and an engineering specialization to the solution
PO1
of complex engineering problems..
Problem analysis: Identify, formulate, research literature, and analyze
complex engineering problems reaching substantiated conclusions using first
PO2
principles of mathematics, natural sciences, and engineering sciences.
Design/development of solutions: Design solutions for complex engineering
problems and design system components or processes that meet the specified
PO3 needs with appropriate consideration for the public health and safety, and the
cultural, societal, and environmental considerations.
Conduct investigations of complex problems: Use research-based
knowledge and research methods including design of experiments, analysis
PO4
and interpretation of data, and synthesis of the information to provide valid
conclusions.
Modern tool usage: Create, select, and apply appropriate techniques,
resources, and modern engineering and IT tools including prediction and
PO5 modeling to complex engineering activities with an understanding of the
limitations.
The engineer and society: Apply reasoning informed by the contextual
knowledge to assess societal, health, safety, legal and cultural issues and the
PO6
consequent responsibilities relevant to the professional engineering practice.
Environment and sustainability: Understand the impact of the professional
engineering solutions in societal and environmental contexts, and demonstrate
PO7
the knowledge of, and need for sustainable development
5|Page
BUDGE BUDGE INSTITUTE OF TECHNOLOGY
Affiliated to MAKAUT (formerly WBUT) & Approved by AICTE, NAAC Accredited
Kolkata - 700 137, West Bengal, India
LABORATORY NAME-OBJECT ORIENTED PROGRAMMING LAB
COURSE CODE-PCC-CS593
PROGRAM PROGRAM OUTCOME DETAILS
OUTCOME
Ethics: Apply ethical principles and commit to professional ethics and
PO8 responsibilities and norms of the engineering practice.
Individual and team work: Function effectively as an individual, and as a
PO9 member or leader in diverse teams, and in multidisciplinary settings.
Communication: Communicate effectively on complex engineering activities
with the engineering community and with society at large, such as, being able
PO10 to comprehend and write effective reports and design documentation, make
effective presentations, and give and receive clear instructions.
Project management and finance: Demonstrate knowledge and
understanding of the engineering and management principles and apply these
PO11
to one’s own work, as a member and leader in a team, to manage projects and
in multidisciplinary environments.
Life-long learning: Recognize the need for, and have the preparation and
PO12 ability to engage in independent and life-long learning in the broadest context
of technological change.
6|Page
BUDGE BUDGE INSTITUTE OF TECHNOLOGY
Affiliated to MAKAUT (formerly WBUT) & Approved by AICTE, NAAC Accredited
Kolkata - 700 137, West Bengal, India
LABORATORY NAME-OBJECT ORIENTED PROGRAMMING LAB
COURSE CODE-PCC-CS593
Program Specific Outcomes (PSO’s)
PSO PROGRAM SPECIFIC OUTCOMES DETAILS
Graduates should have strong foundations in Basic Sciences, Mathematics, Computer
PSO1 Science, and allied engineering to become software professionals to satisfy the needs
of IT Companies, research academia, and society.
Graduates should be able to identify, plan, design, analyze, and evolve project-
PSO2 implementing proficiencies and develop novel product solutions and simulations for
real-life problems in Computer Science and Engineering and the IT industry.
Initiative to adopt innovative computing technologies lifelong to acquire professional
PSO3 greatness and develop Graduates as computing professionals who can conduct
research and lead, design, develop, or maintain projects in various areas of Computer
science and engineering.
PSO4 Graduates must possess professional, ethical, and social responsibilities,
communicational skills, and teamwork needed for a prosperous professional career.
7|Page
BUDGE BUDGE INSTITUTE OF TECHNOLOGY
Affiliated to MAKAUT (formerly WBUT) & Approved by AICTE, NAAC Accredited
Kolkata - 700 137, West Bengal, India
LABORATORY NAME-OBJECT ORIENTED PROGRAMMING LAB
COURSE CODE-PCC-CS593
Program Educational Objectives (PEO’s)
PEO PROGRAM EDUCATIONAL OBJECTIVES
Knowledge of Basic Engineering Science and Technical Skills:
PEO1 To provide Students with good breadth of knowledge in mathematical, scientific,
computing and basic engineering fundamentals necessary to formulate, analyze and
solve hardware/software engineering problems.
PEO2 Engineering Design Skills:
To equip Students with the capability of problem solving skills required for the
general practice of engineering design.
PEO3 Preparation for Further/Higher Studies:
Students will have the ability to pursue advanced studies and research in their
chosen fields.
PEO4 Preparation for Profession:
Students will have the ability of working in teams with professional ethics, soft
skills and required domain knowledge.
8|Page
BUDGE BUDGE INSTITUTE OF TECHNOLOGY
Affiliated to MAKAUT (formerly WBUT) & Approved by AICTE, NAAC Accredited
Kolkata - 700 137, West Bengal, India
LABORATORY NAME-OBJECT ORIENTED PROGRAMMING LAB
COURSE CODE-PCC-CS593
Course Outcomes (CO’s)
Course Outcomes (CO’s)
Course DESCRIPTION Blooms’
Outcome The student will be able to- Taxonomy Level
PCC-CS593.1 Understand the methodologies involved in class, constructor, Understand, Apply
overloading, inheritance, overriding
PCC-CS593.2 Gain knowledge about wrapper class, arrays Understand, Apply
PCC-CS593.3 Developing interfaces multiple inheritance, extending interfaces Apply, Analyze
PCC-CS593.4 Creating and accessing packages Create
PCC-CS593.5 Assignments on multithreaded programming Evaluate, Create
PCC-CS593.6 Learn applet programming Apply, Analyze
Mapping of Course Outcomes with Program Outcomes and Program specific Outcomes
Mapping of CO with PO and PSO
COs' PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12 PSO1 PSO2 PSO3 PSO4
PCC-CS593.1 2 2 1 1 1 1 2 2 1 1 1 3 3
PCC-CS593.2 1 1 2 1 1 1 1 3 2 1 2 2 3
PCC-CS593.3 3 2 2 2 1 1 1 2 2 2 1 1 3 2
PCC-CS593.4 3 1 2 2 2 1 1 2 2 2 1 2 3 3
PCC-CS593.5 2 2 3 2 3 1 2 1 2 3 3 1 3
PCC-CS593.6 1 2 1 3 1 2 3 1 2 2 3 1 1
Average 2.00 1.67 2.00 2.00 1.67 1.00 1.20 1.50 2.00 1.83 1.75 1.50 1.80 2.50 2.50 1.00
9|Page
BUDGE BUDGE INSTITUTE OF TECHNOLOGY
Affiliated to MAKAUT (formerly WBUT) & Approved by AICTE, NAAC Accredited
Kolkata - 700 137, West Bengal, India
LABORATORY NAME-OBJECT ORIENTED PROGRAMMING LAB
COURSE CODE-PCC-CS593
Do’s and Dont’s
DO’S
Without Prior permission do not enter into the Laboratory.
While entering into the LAB students should wear their I-cards.
The Students should come with proper uniform.
Students should come with observation and record note book to the laboratory.
Students should maintain silence inside the laboratory.
After completing the laboratory exercise, make sure to shutdown the system properly.
DONT’S
Students bringing the bags inside the laboratory.
Students wearing slippers/shoes insides laboratory.
Students using the computers in an improper way.
Students scribbling on the desk and mishandling chairs.
Students using mobile phones inside the laboratory.
Students making noise inside the laboratory.
Assignment List
10 | P a g e
BUDGE BUDGE INSTITUTE OF TECHNOLOGY
Affiliated to MAKAUT (formerly WBUT) & Approved by AICTE, NAAC Accredited
Kolkata - 700 137, West Bengal, India
LABORATORY NAME-OBJECT ORIENTED PROGRAMMING LAB
COURSE CODE-PCC-CS593
Sl. Course Blooms
Topic of the Assignment
No. Outcome Taxonomy
Write a program in Java for addition of any two whole
1. PCC-CS593.1 Apply
numbers.
Write a program in Java to find out if a number is Prime or
2. PCC-CS593.1 Apply
not.
Write a program in Java of creation of an object and using
3. PCC-CS593.1 Apply
that object to display the values.
Write a program in Java of basic method overloading using
4. different objects and display the values for every object PCC-CS593.1 Apply
accordingly.
Write a program in Java of basic Banking Process of deposit
5. and withdrawal and display by creating a single object and PCC-CS593.1 Analyze
using it accordingly.
Write a program in Java to show constructor overloading
6. PCC-CS593.1 Apply
with the help of four different object creations.
Write a program in Java where constructor overloading and
7. method overloading will perform with the help of four PCC-CS593.1 Apply
different objects.
Write a program in Java of polymorphism where
concatenation of two different strings and two float numbers
8. PCC-CS593.1 Apply
where concatenation and addition both will perform in a
single program.
Write a program in Java of polymorphism to calculate area
9. of different shapes like Square, Rectangle, Triangle and PCC-CS593.1 Apply
Circle with the help of four different object creations.
Write a program in Java to show constructor overloading
10. and method overloading with the help of Inheritance by PCC-CS593.1 Analyze
Creating three different subclasses.
11 | P a g e
BUDGE BUDGE INSTITUTE OF TECHNOLOGY
Affiliated to MAKAUT (formerly WBUT) & Approved by AICTE, NAAC Accredited
Kolkata - 700 137, West Bengal, India
LABORATORY NAME-OBJECT ORIENTED PROGRAMMING LAB
COURSE CODE-PCC-CS593
Write a program in Java to show method overloading with
11. the help of Inheritance by Creating three different PCC-CS593.1 Analyze
subclasses.
Write a program in Java of basic example of Inheritance
12. PCC-CS593.3 Apply
using interface.
Write a program in Java of multiple Inheritance using
13. PCC-CS593.3 Apply
interface-1.
Write a program in Java of multiple Inheritance using
14. PCC-CS593.3 Apply
interface-2.
Write a program in Java to show example of multilevel
15. PCC-CS593.3 Apply
inheritance.
Write a program in Java of basic two number additions
16. through user input using command line arguments using PCC-CS593.2 Apply
wrapper class.
Write a program in Java that demonstrates how command
17. PCC-CS593.1 Analyze
line arguments are received as strings in Java.
Write a program in Java to test system define exceptions
18. PCC-CS593.1 Apply
through different category user inputs.
Write a program in Java to exceptions of user’s choice
19. PCC-CS593.1 Apply
depending on user input logic.
Write a program in Java for several types of system defined
20. PCC-CS593.1 Apply
exceptions.
Write a program in Java for different types of user defined
21. PCC-CS593.1 Apply
exceptions.
Write a program in Java to show exceptions of user’s choice
22. PCC-CS593.1 Apply
depending on user input logic
23. Create an abstract class to calculate employee details, PCC-CS593.3 Analyze
leveraging inheritance properties. Then, create two objects
12 | P a g e
BUDGE BUDGE INSTITUTE OF TECHNOLOGY
Affiliated to MAKAUT (formerly WBUT) & Approved by AICTE, NAAC Accredited
Kolkata - 700 137, West Bengal, India
LABORATORY NAME-OBJECT ORIENTED PROGRAMMING LAB
COURSE CODE-PCC-CS593
for different child classes.
Write a program in Java for Banking transactions where
24. deposit, withdrawal, display and search of an account have PCC-CS593.1 Create
to show according to the choice of the user.
Write a program in Java that demonstrates thread
25. functionality for getting the thread name and priority. Use PCC-CS593.5 Analyze
try-catch logic in your implementation.
Write a program in Java of your own thread which will
26. PCC-CS553.5 Apply
follow the thread life cycle
Write a program in Java that extends thread using package
27. PCC-CS593.4 Analyze
which contains thread class
Write a program in Java to control main thread by
28. PCC-CS593.5 Analyze
changing its name.
Write a program in Java to create threads using two
29. PCC-CS593.5 Apply
processes which will run simultaneously using sleep timer.
Write a program in Java to create threads by setting child
30. PCC-CS593.5 Apply
thread and using all thread with time interval.
Write a program in Java to create threads by making child
31. PCC-CS593.5 Apply
thread and use all threads by their name and their priorities.
Create a basic Java applet that demonstrates interactivity
32. PCC-CS593.6 Create
and dynamic behavior within a web page.
Hardware and Software Specification for the Laboratory
13 | P a g e
BUDGE BUDGE INSTITUTE OF TECHNOLOGY
Affiliated to MAKAUT (formerly WBUT) & Approved by AICTE, NAAC Accredited
Kolkata - 700 137, West Bengal, India
LABORATORY NAME-OBJECT ORIENTED PROGRAMMING LAB
COURSE CODE-PCC-CS593
Hardware Requirements:
Processor : Intel Core i3
RAM : 4 GB
Hard Disk : 512 GB
Software Requirements
1. Java Development Kit (JDK): You’ll need JDK installed on your system. The
recommended version is Java 8 (JDK 1.8).
2. Software installed: Microsoft Office Integrated Development Environment (IDE):
Choose an IDE for writing and compiling Java code. Some popular options include:
o Eclipse: A widely used IDE for Java development.
o IntelliJ IDEA: Another powerful IDE with excellent Java support.
o NetBeans: A free and open-source IDE for Java development.
3. Text Editor: If you prefer not to use an IDE, you can write Java code in a simple text
editor (e.g., Notepad++) and compile it using the command line.
4. Compiler: Java code needs to be compiled into bytecode. The JDK includes the
necessary compiler (javac).
Assessment methods of University Lab Examination
14 | P a g e
BUDGE BUDGE INSTITUTE OF TECHNOLOGY
Affiliated to MAKAUT (formerly WBUT) & Approved by AICTE, NAAC Accredited
Kolkata - 700 137, West Bengal, India
LABORATORY NAME-OBJECT ORIENTED PROGRAMMING LAB
COURSE CODE-PCC-CS593
PRACTICAL ASSESSMENT
Internal Assessment (PCA-1 & PCA-2) 40 Marks
Practical Assessment 60 Marks
Total 100 Marks
15 | P a g e
BUDGE BUDGE INSTITUTE OF TECHNOLOGY
Affiliated to MAKAUT (formerly WBUT) & Approved by AICTE, NAAC Accredited
Kolkata - 700 137, West Bengal, India
LABORATORY NAME-OBJECT ORIENTED PROGRAMMING LAB
COURSE CODE-PCC-CS593
LABORATORY MANUAL (SAMPLE)
Assignment-01
16 | P a g e
BUDGE BUDGE INSTITUTE OF TECHNOLOGY
Affiliated to MAKAUT (formerly WBUT) & Approved by AICTE, NAAC Accredited
Kolkata - 700 137, West Bengal, India
LABORATORY NAME-OBJECT ORIENTED PROGRAMMING LAB
COURSE CODE-PCC-CS593
Write a program in Java for addition of any two whole numbers.
import java.util.Scanner;
public class AddTwoNumbers {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// Input two whole numbers
System.out.print("Enter the first whole number: ");
int num1 = scanner.nextInt();
System.out.print("Enter the second whole number: ");
int num2 = scanner.nextInt();
// Calculate the sum
int sum = num1 + num2;
// Display the result
System.out.println("Sum of " + num1 + " and " + num2 + " is " + sum);
// Close the scanner
scanner.close();
}
}
To run this program:
1. Save the code to a file named AddTwoNumbers.java.
2. Open a terminal or command prompt.
3. Compile the program using javac AddTwoNumbers.java.
4. Run the compiled program using java AddTwoNumbers
OUTPUT:
Enter the first whole number: 10
Enter the second whole number: 20
Sum of 10 and 20 is 30
Assignment – 02
17 | P a g e
BUDGE BUDGE INSTITUTE OF TECHNOLOGY
Affiliated to MAKAUT (formerly WBUT) & Approved by AICTE, NAAC Accredited
Kolkata - 700 137, West Bengal, India
LABORATORY NAME-OBJECT ORIENTED PROGRAMMING LAB
COURSE CODE-PCC-CS593
Write a program in Java to find out if a number is Prime or not.
import java.util.Scanner;
public class PrimeNumberChecker {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("Enter a positive integer: ");
int number = scanner.nextInt();
boolean isPrime = checkPrime(number);
if (isPrime) {
System.out.println(number + " is a prime number.");
} else {
System.out.println(number + " is not a prime number.");
}
scanner.close();
}
// Function to check if a number is prime
public static boolean checkPrime(int num) {
if (num <= 1) {
return false;
}
for (int i = 2; i * i <= num; i++) {
if (num % i == 0) {
return false;
}
}
return true;
}
}
To run this program:
1. Save the code to a file named PrimeNumberChecker.java.
2. Open a terminal or command prompt.
18 | P a g e
BUDGE BUDGE INSTITUTE OF TECHNOLOGY
Affiliated to MAKAUT (formerly WBUT) & Approved by AICTE, NAAC Accredited
Kolkata - 700 137, West Bengal, India
LABORATORY NAME-OBJECT ORIENTED PROGRAMMING LAB
COURSE CODE-PCC-CS593
3. Compile the program using javac PrimeNumberChecker.java.
4. Run the compiled program using java PrimeNumberChecker.
OUTPUT:
Enter a positive integer: 17
17 is a prime number.
19 | P a g e
BUDGE BUDGE INSTITUTE OF TECHNOLOGY
Affiliated to MAKAUT (formerly WBUT) & Approved by AICTE, NAAC Accredited
Kolkata - 700 137, West Bengal, India
LABORATORY NAME-OBJECT ORIENTED PROGRAMMING LAB
COURSE CODE-PCC-CS593
ANNEXURE
20 | P a g e