LAB - 4
LAB - 5
LAB - 6
LAB -7
LAB - 8
LAB - 9
LAB - 10
LAB - 11
LAB - 12
The laboratory framework includes a creative element but shifts the time-intensive
aspects outside of the Two-Hour closed laboratory period. Within this structure, each
laboratory includes three parts: Prelab, In-lab, and Post-lab.
a. Pre-Lab
The Prelab exercise is a homework assignment that links the lecture with the
laboratory period - typically takes 2 hours to complete. The goal is to synthesize the
information they learn in lecture with material from their textbook to produce a
working piece of software. Prelab Students attending a two-hour closed laboratory
are expected to make a good-faith effort to complete the Prelab exercise before
coming to the lab. Their work need not be perfect, but their effort must be real
(roughly 80 percent correct).
b. In-Lab
The In-lab section takes place during the actual laboratory period. The First hour of
the laboratory period can be used to resolve any problems the students might have
experienced in completing the Prelab exercises. The intent is to give constructive
feedback so that students leave the lab with working Prelab software - a significant
accomplishment on their part. During the second hour, students complete the In-lab
exercise to reinforce the concepts learned in the Prelab. Students leave the lab having
received feedback on their Prelab and In-lab work.
c. Post-Lab
The last phase of each laboratory is a homework assignment that is done following the
laboratory period. In the Post-lab, students analyze the efficiency or utility of a given
system call. Each Post-lab exercise should take roughly 120 minutes to complete.
LAB - 5
LAB - 6
LAB -7
LAB - 8
LAB - 9
LAB - 10
LAB - 11
LAB - 12
The laboratory framework includes a creative element but shifts the time-intensive
aspects outside of the Two-Hour closed laboratory period. Within this structure, each
laboratory includes three parts: Prelab, In-lab, and Post-lab.
a. Pre-Lab
The Prelab exercise is a homework assignment that links the lecture with the
laboratory period - typically takes 2 hours to complete. The goal is to synthesize the
information they learn in lecture with material from their textbook to produce a
working piece of software. Prelab Students attending a two-hour closed laboratory
are expected to make a good-faith effort to complete the Prelab exercise before
coming to the lab. Their work need not be perfect, but their effort must be real
(roughly 80 percent correct).
b. In-Lab
The In-lab section takes place during the actual laboratory period. The First hour of
the laboratory period can be used to resolve any problems the students might have
experienced in completing the Prelab exercises. The intent is to give constructive
feedback so that students leave the lab with working Prelab software - a significant
accomplishment on their part. During the second hour, students complete the In-lab
exercise to reinforce the concepts learned in the Prelab. Students leave the lab having
received feedback on their Prelab and In-lab work.
c. Post-Lab
The last phase of each laboratory is a homework assignment that is done following the
laboratory period. In the Post-lab, students analyze the efficiency or utility of a given
system call. Each Post-lab exercise should take roughly 120 minutes to complete.
Lab 1:.......................................................................................................................................................7
Prerequisite: Java fundamentals- Operators, Conditions, loops and output statement...................7
Pre-Lab Task:.......................................................................................................................................7
In-Lab Task: .........................................................................................................................................9
Post-Lab Task: ...................................................................................................................................15
Lab 2:.....................................................................................................................................................19
Pre-Lab Task:.....................................................................................................................................19
In-Lab Task: .......................................................................................................................................24
Post-Lab Task: ...................................................................................................................................29
Lab 3:.....................................................................................................................................................33
Prerequisite: I/O through files and GUI ...........................................................................................33
Pre-Lab Task:.....................................................................................................................................33
In-Lab Task: .......................................................................................................................................35
Post-Lab Task: ...................................................................................................................................39
Lab 4:.....................................................................................................................................................41
Prerequisite: Constructors and Overloading, Chaining and this.......................................................41
Pre-Lab Task:.....................................................................................................................................41
In-Lab Task: .......................................................................................................................................45
Post-Lab Task: ...................................................................................................................................50
Lab 5:.....................................................................................................................................................55
Prerequisite: Objects as data members, Menu driven programs - operations on array of objects.55
Pre-Lab Task: .....................................................................................................................................55
In-Lab Task:........................................................................................................................................58
Post-Lab Task:....................................................................................................................................63
Lab 6:.....................................................................................................................................................68
Prerequisite: String, StringBuffer, StringTokenizer and Date ...........................................................68
Pre-Lab Task:.....................................................................................................................................68
In-Lab Task: .......................................................................................................................................72
Post-Lab Task: ...................................................................................................................................75
Lab 7......................................................................................................................................................77
Prerequisite: Inheritance, super keyword ........................................................................................91
Pre-Lab Task ......................................................................................................................................91
In -Lab Task: ......................................................................................................................................92
19CS1203 OBJECT ORIENTED PROGRAMMING
3
Post-Lab Task ....................................................................................................................................95
Lab 08:...................................................................................................................................................77
Prerequisite:......................................................................................................................................77
Pre-Lab Task:.....................................................................................................................................77
In-Lab Task: .......................................................................................................................................79
Post-Lab Task: ...................................................................................................................................88
Lab 09:...................................................................................................................................................98
Prerequisite:......................................................................................................................................98
Pre-Lab Task:.....................................................................................................................................98
In-Lab Task: .....................................................................................................................................100
Post-Lab Task: .................................................................................................................................103
Lab 10:.................................................................................................................................................107
Prerequisite: Exception Handling...................................................................................................107
Pre-Lab Task:...................................................................................................................................107
In-Lab Task: .....................................................................................................................................109
Post-Lab Task: .................................................................................................................................113
Lab 11..................................................................................................................................................115
Prerequisite: Multithreading..........................................................................................................115
Pre-Lab Task:...................................................................................................................................115
In-Lab Task: .....................................................................................................................................118
Post-Lab Task: .................................................................................................................................122
Lab 12..................................................................................................................................................124
Prerequisite: Collection Framework – List, Set and Map...............................................................124
Pre-Lab Task:...................................................................................................................................124
In-Lab Task: .....................................................................................................................................127
Post-Lab Task: .................................................................................................................................127