0% found this document useful (0 votes)
0 views

1010206202_Object Oriented Programming using Java (P)

The document outlines the syllabus for the Object Oriented Programming using Java practical course at Bhagwan Mahavir University for B.Tech. Semester II. It includes a list of practical exercises designed to enhance programming skills, such as solving equations, calculating BMI, and implementing various algorithms. The course carries a total of 50 marks, with specified internal and external examination marks.

Uploaded by

Code Kkm
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

1010206202_Object Oriented Programming using Java (P)

The document outlines the syllabus for the Object Oriented Programming using Java practical course at Bhagwan Mahavir University for B.Tech. Semester II. It includes a list of practical exercises designed to enhance programming skills, such as solving equations, calculating BMI, and implementing various algorithms. The course carries a total of 50 marks, with specified internal and external examination marks.

Uploaded by

Code Kkm
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

BHAGWAN MAHAVIR UNIVERSITY

Department: Computer Engineering

Bachelor of Engineering

Subject Code: 1010206202

B.Tech.
Semester II
Object Oriented Programming using Java -
Practical

EFFECTIVE FROM DEC-2020

Syllabus version:1.00
BHAGWAN MAHAVIR UNIVERSITY
Department: Computer Engineering

Bachelor of Engineering

Subject Code: 1010206202

Teaching Scheme (Hours)


Subject Subject Practical
Code Title Practical Credits Examination Marks Total Marks
Internal External
Object
Oriented
Programmi
1010206202 2 1 20 30 50
ng using
Java-
Practical

List of Practical:

Sr. No. Object Oriented Programming using Java (Practical)


Write a Program that displays Welcome to Java, Learning Java Now and Programming is
1
fun.
Write a program that solves the following equation and displays the value x and y:
1) 3.4x+50.2y=44.5 2) 2.1x+.55y=5.9
2 (AssumeCramer’s rule to solve equation
ax+by=e x=ed-bf/ad-bc
cx+dy=f y=af-ec/ad-bc)
Write a program that reads a number in meters, converts it to feet, and displays the result.
3
Body Mass Index (BMI) is a measure of health on weight. It can be calculated by taking
your weight in kilograms and dividing by the square of your height in meters. Write a
4 program that prompts the user to enter a weight in pounds and height in inches and
displays the BMI.
Note:- 1 pound=.45359237 Kg and 1 inch=.0254 meters.
Write a program that prompts the user to enter three integers and display the integers in
5
decreasingorder.
Write a program that prompts the user to enter a letter and check whether a letter is a vowel
6
orconstant.
Assume a vehicle plate number consists of three uppercase letters followed by four digits.
7
Write aprogram to generate a plate number.
Write a program that reads an integer and displays all its smallest factors in increasing
8
order. Forexample, if input number is 120, the output should be as follows:2,2,2,3,5.
Write the method with following header method.
Public static intgcd(int num1, int num2)
9
Write a Program that prompts the user to enter two integers and compute the gcd of two
integers.
Write a test program that prompts the user to enter ten numbers, invoke a method to reverse
10
thenumbers, display the numbers.
Write a program that generate 6*6 two-dimensional matrix, filled with 0’s and 1’s , display
11
thematrix, check every raw and column have an odd number’s of 1’s.
Write a program that creates a Random object with seed 1000 and displays the first 100
12
randomintegers between 1 and 49 using the NextInt (49) method.
BHAGWAN MAHAVIR UNIVERSITY
Department: Computer Engineering

Bachelor of Engineering

Subject Code: 1010206202

Write a program for calculator to accept an expression as a string in which the operands
13 and operator are separated by zero or more spaces.
For ex: 3+4 and 3 + 4 are acceptable expressions.
Write a program that creates an Array List and adds a Loan object, a Date object, a string,
14 and aCircle object to the list, and use a loop to display all elements in the list by invoking
the object’s to String() method.
Write the bin2Dec (string binary String) method to convert a binary string into a decimal
15 number. Implement the bin2Dec method to throw a NumberFormatException if the string
is not a binarystring.
Write a program that prompts the user to enter a decimal number and displays the number
in a fraction.
16
Hint: Read the decimal number as a string, extract the integer part and fractional part from
thestring.
Write a program that displays a tic-tac-toe board. A cell may be X, O, or empty. What to
17 display ateach cell is randomly decided. The X and O are images in the files X.gif and
O.gif.
18 Write a program that moves a circle up, down, left or right using arrowkeys.
Write a program that displays the color of a circle as red when the mouse button is pressed
19
and asblue when the mouse button is released.
Write a GUI program that use button to move the message to the left and right and use the
20
radio button to change the color for the message displayed.
Write a program to create a file name 123.txt, if it does not exist. Append a new data to it
21 if it already exists. write 150 integers created randomly into the file using Text I/O. Integers
are separated by space.
Write a recursive method that returns the smallest integer in an array. Write a test program
22
that prompts the user to enter an integer and display its product.
23 Write a generic method that returns the minimum elements in a two-dimensional array.
Define MY Priority Queue class that extends Priority Queue to implement the Cloneable
24
interface and implement the clone() method to clone a priority queue.
Write a program that reads words from a text file and displays all the nonduplicate words
25
in descending order. The text file is passed as a command-line argument.

Major Equipment:

1. Computer system which supporting Software.

*******************************************************************

You might also like