Online Vehicle Booking

Only available on StudyMode
  • Topic: C, Java, Perl
  • Pages : 86 (8414 words )
  • Download(s) : 19
  • Published : February 18, 2013
Open Document
Text Preview
Assignment 1:

The goals of this assignment are:
- learn to compile and run a very simple Java program
- To know how to use environment
(a) WAP to generate Fibonacci Series

(b) WAP to generate Prime Number Series

(c) WAP to convert given Celsius to Fahrenheit

Assignment 2:

The goals of this assignment are:
- learn to compile and run a very simple Java program
- learn to Arrays
(a) WAP to find the sum of ‘n’ Numbers

(b) WAP to Sort ‘n’ Numbers

(c) WAP to Addition, Subtraction and Multiplication of two matrices

Assignment 3:

The goals of this assignment are:
- learn to compile and run a very simple Java program
- learn to use String, StringBuffer and StringBuilder
(a) Demonstrate an example to extract substring of from a string

(b) WAP to parse String using String Tokenizer

(c) WAP to reverse a String (By character)

(d) WAP to reverse a String (By words)

(e) Demonstrate an example StringBuffer and String and StringBuilder

(f) Demonstrate difference between == and equals operator on String

(g) WAP to convert cases of given String

(h) WAP to sort given ‘N’ Strings

(i) WAP to concatenation of String

(j) WAP to string comparision

Assignment 4:

The goals of this assignment are:
- learn to use of MATH library
- learn passing command line arguments
Demonstrate an example for Constants, Truncating, comparision, power , Trigonometric ,square roots and generate random number using Math library

Assignment 5:

The goals of this assignment are:
- learn the basic jargon of object oriented programming and how it appears in code - learn how a Java program is organized into multiple source files - learn to compile and run a very simple Java program

(a) Create an application program that consists of 2 classes, a "startup class" and a second class that prints out the values of at least 3 instance variables that are initialized in one method and printed from another. The initialization method should have two forms. One of them will have no arguments and the other 3 arguments corresponding to the data types of the 3 instance variables. The second class should also contain a "class variable" of one of the 8 primitive data types (you choose). Create 2 instances of the second class. Using one instance, set the class variable to some value and, using the second instance, print that value out. Also, using either or both of the 2 instances, call the methods that set and print the 3 instance variables.

(b) Demonstrate a Bank Application

Demonstrate 1.Create an Account 2. Deposit 3. Withdraw and 3. Display the account details

Assignment 6:

The goals of this assignment are:
- learn to use inheritance, Exception Handling, Packaging
- learn to design your own hierarchy
- learn how to write and use a constructor method
- learn how to use access specifiers (public, protected, private, and default or package)

(a) Write an application with a hierarchy composed of at least 2 classes. One of these classes will be a subclass derived from the other. The subclass is to have at least 3 constructor methods. Each of these will be called during the creation of 3 subclass objects. In the example shown, the subclass student has a default constructor, a constructor with one string argument, and a constructor with a string argument giving the student's name and an integer argument giving an ID number.

(b) Create an hierarchy of

Person

Student Employee

Write a simple java program to show Student and Employee detail.

(c) Assume necessary hierarchy and demonstrate computation of Student Result generation/Marks sheet generation.

(d) WAP to create custom exception handling.

Assignment 7:
The goals of this assignment are:
- learn to use I/O Streams
(a) WAP to demonstrate...
tracking img