https://github.com/vipul1432/4thsem-java-practicals
4th Semester-Java-Practicals GTU #OOPs All source code
https://github.com/vipul1432/4thsem-java-practicals
data-structures java javafx oops
Last synced: 26 days ago
JSON representation
4th Semester-Java-Practicals GTU #OOPs All source code
- Host: GitHub
- URL: https://github.com/vipul1432/4thsem-java-practicals
- Owner: Vipul1432
- Created: 2022-05-13T08:50:05.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-15T04:44:57.000Z (almost 3 years ago)
- Last Synced: 2025-04-02T09:22:42.611Z (about 2 months ago)
- Topics: data-structures, java, javafx, oops
- Language: Java
- Homepage:
- Size: 47.9 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 4thSem-Java-Practicals @GTU #OOPs
#Practical 1 :
Write a Program that displays Welcome to Java, Learning Java Now and Programming is fun.

#Practical 2 :
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 :
Write a program that reads a number in meters, converts it to feet, and displays the result.

#Practical 4 :
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.

Practical 5 :
Write a program that prompts the user to enter three integers and display the integers in decreasing order.

#Practical 6 :
Write a program that prompts the user to enter a letter and check whether a letter is a vowel or constant.

#Practical 7 :
Assume a vehicle plate number consists of three uppercase letters followed by four digits. Write a program to generate a plate number.

#Practical 8 :
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 :
Write a program that prompts the user to enter two integers and compute the gcd of two integers.

#Practical 10 :
Write a test program that prompts the user to enter ten numbers, invoke a method to reverse the numbers, display the numbers
