Syllabus - CS8 Lab 4: Object Oriented Programming with Java

CS8 Lab 4: Object Oriented Programming with Java
( 6 Hours – 4 Credits)


Write programs in Java for the following:

1.      To perform addition of complex numbers using class and objects.  
2.      To perform multiplication of matrices using class and objects.  
3.      To perform volume calculation using method overloading 
4.      Using command line arguments,  test if the given string is palindrome or not.  
5.      Write a program to fill names into a list.   Also,  copy them in reverse order into another list.    If the name contains any numeric value throw an exception  “InvalidName”. 

6.      Using multilevel inheritance process student marks
7.      Implement multiple inheritance for payroll processing
8.      Create a package called “Arithmetic” that contains methods to deal with all arithmetic
operations.   Also,  write a program to use the package
9.      Create two threads such that one of the thread print even no’s and another prints odd no’s up to a given range. 

10.  Define an exception called “Marks Out Of Bound” Exception,  that is thrown if the entered marks are greater than 100. 
11.  String manipulation using string methods ( Use of any five String methods preferred)
12.  File  – byte stream
13.  File – character stream
14.  Write an Applet illustrating sequence of events in an applet. 

15.   Write an Applet program to design a simple calculator. 

16.  Write an Interactive Applet program which will make the balls of various colours to
move across the screen within the specified time limit.   The number of balls and the time limit for ball animation should be obtained from the User when the applet starts. 

No comments

Powered by Blogger.