Sie sind auf Seite 1von 2

P.E.

Societys

Modern College of Engineering, Pune 5


Course MCA-II (Semester-IV)

Subject: Java Programming Assignment & Schedule Assignment-I (Core Java)


1. Write a program, which accepts a word from command line, and print each character of word on one line. 2. Define Class called Computer. Define Subclasses of Computer called Desk Top and Laptop. Accept details of 3 categories. Show accepted information by overriding display method. (Define at least three attributes in each class. Assume suitable data) 3. Write program to accept rollno, & marks from user. Throw Marks Out of Bound Exception if marks are <0 or marks>100. 4. Write a program to create a class stack, as well as create an interface with methods push() and pop(). Also create user define exception stack empty and stack overflow. 5. Write a class Student, store it in package stud. Write a class Batch with information about subject, faculty, timing. Store it in package bat. Use the class Batch to set information in the Student class.

Last date for submission: 23/01/2012

Assignment-II (Multithreading)
1. 2. 3. 4. 5. Write a program to display two strings bouncing in opposite directions. Write a program for matrix multiplication using multithreading. Write a program to create a digital clock. Write a program for Quick sort. Write a program to manage Bank Account with Thread Synchronization. Last date for submission: 06/02/2012

Assignment-III (AWT & Swing)


1. Write a program to display a Hello message in the window when left mouse button is clicked. 2. Crate a simple Calculator with all options.
3. Write a program to create a login page and do the validation such as name, password, date etc. 4. Write a program to create traffic signal. 5. Write a program to create graphics user interface with menu.

Last date for submission: 20/02/2012

Assignment-IV (Applet)
1. Write an applet program that accepts two input string using <param> tag and concatenate the strings and display it in window. 2. Write an applet program which displays two drop down list (one for font type and other for font size) and three radio buttons (one for each font style). Display one string with selected font setting. Font list should display system supported font types dont hardcode. 3. Create an applet to display animation image. Control the animation with two buttons (Start and Stop) such that when start button is pressed animation should start and when stop button is pressed animation should stop. 4. Write a program to create simple graph using applet. 5.Design an applet to display details of mobile holder like Name, Mobile No.,Address,City,Gender and display accepted information in suitable format.

Last date for submission: 05/03/2012

Assignment-V (File Handling)


1. Write a program to accept five numbers from the user, find total and average of these numbers and display result on the screen. 2. Write a program to accept two numbers from user. Also accept a choice to perform various arithmetic operations like addition, subtraction, multiplication and division on them. Display the result. 3. Write a program which will accept file name from command line and will show the contents of the file. 4. Write a java program that displays TextField where user can type a file name. When file name is entered the program should check whether file is exist. If it does not, an error message should be flashed on the screen and if it is there then it should display contents of the file in a TextArea. 5. Write a Java program that reads a lower-case string from the command line and writes this string to a file CmdStrCaps.txt in Upper case. 6. Write a program which creates a random file containing rollno, name and marks. Accept name from user and display corresponding rollno and marks.

Last date for submission:19/03/2012

Assignment-VI (JDBC & Networking)


1. Write a program to establish a connection with a database using JDBC. 2. Design GUI based JDBC application to navigate (first, last, next, previous) through student records. (Assume suitable table structure) 3. Write JDBC backend class, which establishes a connection with the database having a table STUDENT with structure rollno, name, class, dob. a. Using the above backend class WAP to accept rollno from command line and display the details with proper error messages. b. Display all the records from table with proper formatting. 4. Write a program to print Inetaddress of local system. 5. Write a program to establish connection between client and server. 6. Write a Java Socket program for client server chatting application. 7. Write RMI application to invoke simple interest calculation methods.

Last date for submission: 02/04/2012

Prepared by : Prof. S. D. Ghule

Das könnte Ihnen auch gefallen