Professional Documents
Culture Documents
Oopj Certi 1
Oopj Certi 1
Oopj Certi 1
LABORATORY MANUAL
OBJECT ORIENTED PROGRAMMING WITH JAVA (1330304)
COMPUTER ENGINEERING
(APPROVED BY AICTE)
District Mehsana-Gujarat
Date of Submission:
Sr. Page
No. Experiment Title No. Date Sign
Write a program that reads a number in meters and convert into feets,
3 and displays the result.
Calculate BMI. Write a program that prompts the user to enter the
4 weight in pounds and height in inches and displays the BMI.
write a program which prompts the user to enter three integers and
5 display three integers in decreasing order.
write a program that prompts the user to enter a letter and check
6 Whether a letter is vowel or consonant.
Write a Program that reads an integer and displays all its smallest
8 factors in increasing order.
Write a test program that prompts the user to enter ten numbers,
10 invoke a method to reverse the numbers, display the numbers.
Write a program that generate 6*6 two-dimensional matrix, filled
with 0’s and 1’s , display the matrix, check every raw and column
11
have an odd number’s of 1’s.
Write a program that creates a Random object with seed 1000 and
displays the first 100 random integers between 1 and 49 using the
12
NextInt (49) method.
A program that creates an Array List and adds a Loan object , a Date
object , a string, and a Circle object to the list, and use a loop to
14 display all elements in the list by invoking the object’s to String()
method.
Write a program that prompts the user to enter a decimal number and
16 displays the number in a fraction.
Write a program that moves a circle up, down, left or right using
18 arrow keys.
Write a program that displays the color of a circle as red when the
mouse button is pressed and as blue when the mouse button is
19
released.