ASSIGNMENT
3
13.
506 OBJECT ORIENTED DESIGN AND JAVA PROGRAMMING
Group I (#CODE 1 to 12)
1.
Write a Java program to find a word from
a text and replace it with another word
2.
Write a program to create two threads,
one thread will print odd numbers and second thread will print even numbers
between 1 to 20 numbers.
3.
Write a simple program which can be used
as an application as well as an applet.
4.
Using applet and thread, write a program
that displays digital clock(time in hours: minutes: seconds), starting from
time 00:00:00.
5.
Draw a simple GUI with necessary
controls for performing four basic arithmetic operations addition, subtraction,
multiplication and division along with a ‘History’ button to show the last five operations. Connect the
GUI to a database so that the database can store all operands, operations and
results of last five arithmetic operations that have been performed. Write the
code for handling the events associated with each control and connecting the
database. Use Type 1 or Type 4 connector.
Group II (#CODE 13 to 24)
1.
Define an exception called
‘NoMatchException’ that throws when a string is not equal to ‘India’. Write a program that uses this
exception.
2.
Write a program to read and display
contents of a text file.
3.
Write a Java program with 3 threads as
follows: thread 1 displays all even numbers below 100, thread 2 displays all
fibonaccy numbers below 100 and thread 3 displays all prime numbers below 100.
4.
Draw a simple GUI with necessary
controls for performing four basic arithmetic operations addition, subtraction,
multiplication and division along with a ‘History’ button to show the last five operations. Connect the
GUI to a database so that the database can store all operands, operations and
results of last five arithmetic operations that have been performed. Write the
code for handling the events associated with each control and connecting the
database. Use Type 1 or Type 4 connector.
Group III ( #CODE 25 to 36)
1.
Write a JAVA program to search a
particular word in a text.
2.
Write an applet program that accepts two
input string using <param> tag and concatenate the strings and display it
in status window.
3.
Write an applet that accepts two strings
and outputs whether they are same or not.
4.
Develop a swing application that
receives three numeric values as input from the user and displays the largest
among them on the screen.
5.
Draw a simple GUI with necessary
controls for performing four basic arithmetic operations addition, subtraction,
multiplication and division along with a ‘History’ button to show the last five operations. Connect the
GUI to a database so that the database can store all operands, operations and
results of last five arithmetic operations that have been performed. Write the
code for handling the events associated with each control and connecting the
database. Use Type 1 or Type 4 connector.
Group IV ( #CODE 37 to 49)
1.
Write a Java program that accepts N
integers, sort them and perform binary search on it.
2.
Write a Java program with 3 threads as
follows:
thread
1 displays all even numbers below 100, thraed2 displays all Fibonacci numbers
below 100 and thread 3 displays all square numbers below 100.
3.
Write a swing application to display a
solid circle that is perfectly inside the outline of a square.
4.
Write a program to access the details of
employees such as name, designation and basic pay from database file. Calculate
the total salary by adding basic pay, 50% of basic pay as DA and 20% of basic
pay as HRA. Sort the contents of database based on the total salary and display
the salary statement of all employees.
5.
Draw a simple GUI with necessary
controls for performing four basic arithmetic operations addition, subtraction,
multiplication and division along with a ‘History’ button to show the last five operations. Connect the
GUI to a database so that the database can store all operands, operations and
results of last five arithmetic operations that have been performed. Write the
code for handling the events associated with each control and connecting the
database. Use Type 1 or Type 4 connector.
No comments:
Post a Comment