12-03-2012, 03:40 PM
Object Oriented Programming with Java List of Experiments
[attachment=18226]
1. (Welcome to Java) Write a simple Java application that displays "Welcome
to Java Programming" on console (monitor).
2. (Operator & Variable) Write a Java application that calculates the average
in term of Km/L given by the car. Input the distance in term of meters
and fuel in term of liter.
3.. Write a Java application which calculates square root of given number.
(Hint: Make use of built-in string function included in Math library.)
4. (If-else-if ladder, Switch) Write a Java program which accepts current
month (int) and displays the current season [winter, summer, and
monsoon] according to the value of month.
5. (Swith-case) Write a Java Application to help tourist of a city. The
application should take a character m(Mumbai), k (Kolkata), c (Chennai)
or d (Delhi). Accordingly, it should display more information on the city
selected.
6. Write a Java application which reads command line arguments and display
total number of argument and the arguments on console.
7. (Control flow) Write a Java application that reads marks for the N students
for 5 subjects and display the percentage for each student. Application
should able to check entered marks are valid or not. If marks are invalid
it will take valid marks.
8. Write a Java application which reads (various types of) numbers from
keyboard and display the same on console.
9. Write a program to generate harmonic series. 1+ 1/2 + 1/3 + 1/4 + …. + 1/n
10. Write a program to generate Fibonacci series.
11. Write a program to convert temperature from centigrade to Fahrenheit and
vice-versa.
13. Initialize two arrays (first having weight (Kg) and second having height
(Ft) for 10 persons.) Find total number of persons having weight more
than 70 and height more than 6.5.
14. (Recursion) Write a Java application that solves the tower of Hanoi
problem using recursion.
15. (1-D Array) Write a Java program to sort given number in ascending
order using selection sort.
16. Write Java program to Generate a Multiplication Table. (using 2-D Array)
17. Write Java program to perform Matrix Multiplication using 2-D Array.
Module 2: Objects and Classes