Practical : 1
AIM :
Write a Program that displays Welcome to Java, Learning Java Now and Programming is fun.
Practical : 2
AIM :
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
(Assume Cramer’s rule to solve equation
ax+by=e x=ed-bf/ad-bc
cx+dy=f y=af-ec/ad-bc )
Practical : 3
AIM :
Write a program that reads a number in meters, converts it to feet, and displays the result.
Practical : 4
AIM :
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 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.
Practical : 5
AIM :
Write a program that prompts the user to enter three integers and display the integers in decreasing order.
Practical : 6
AIM :
Write a program that prompts the user to enter a letter and check whether a letter is a vowel or constant.
Practical : 7
AIM :
Assume a vehicle plate number consists of three uppercase letters followed by four digits. Write a program to generate a plate number.
Practical : 8
AIM :
Write a program that reads an integer and displays all its smallest factors in increasing order. For example if input number is 120, the output should be as follows:2,2,2,3,5.
Practical : 9
AIM :
Write a method with following method header. public static int gcd(int num1, int num2) Write a program that prompts the user to enter two integers and compute the gcd of two integers.
Practical : 10
AIM :
Write a test program that prompts the user to enter ten numbers, invoke a method to reverse the numbers, display the numbers.
Practical : 12_1
AIM :
Write a program that creates a Random object with seed 1000 and displays the first 100 random integers between 1 and 49 using the NextInt (49) method.
Practical : 12_2
AIM :
Write a program to create circle class with area function to find area of circle.
Practical : 12_3
AIM :
Write a Program using Constructor overloading in JAVA
Practical : 13
AIM :
Write a program for calculator to accept an expression as a string in which the operands and operator are separated by zero or more spaces. For ex: 3+4 and 3 + 4 are acceptable expressions.
Practical : 14
AIM :
Write 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 display all elements in the list by invoking the object’s to String() method.
Practical : 11
AIM :
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 have an odd number’s of 1’s.
Practical : 21
AIM :
Write a program to create a file name 123.txt, if it does not exist. Append a new data to it if it already exist. write 150 integers created randomly into the file using Text I/O. Integers are separated by space.
Practical : 19
AIM :
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 released.
Practical : 20
AIM :
Write a GUI program that use button to move the message to the left and right and use the radio button to change the color for the message displaye.
Practical : 22
AIM :
Write a recursive method that returns the smallest integer in an array. Write a test program that prompts the user to enter an integer and display its product.
Practical : 14
AIM :
Write a program to create a file name 123.txt, if it does not exist. Append a new data to it if it already exist. write 150 integers created randomly into the file using Text I/O. Integers are separated by space.