An open API service indexing awesome lists of open source software.

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

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.

![image](https://user-images.githubusercontent.com/81670997/168249847-c7329da6-65a8-4659-94c3-e643257c885e.png)

#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)

![image](https://user-images.githubusercontent.com/81670997/168250309-6fc8405b-8fd0-4988-87b7-1e672a7580ab.png)

#Practical 3 :

Write a program that reads a number in meters, converts it to feet, and displays the result.

![image](https://user-images.githubusercontent.com/81670997/168250733-a8430178-d2b8-443e-a7ad-916c721631e5.png)

#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.

![image](https://user-images.githubusercontent.com/81670997/168461038-4523d85c-9f09-40ca-b18b-e7fcf7d634bc.png)

Practical 5 :

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

![image](https://user-images.githubusercontent.com/81670997/168461129-e6437a70-8587-4be5-b4be-cf92d14bb6b9.png)

#Practical 6 :

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

![image](https://user-images.githubusercontent.com/81670997/168738028-ce0a982e-fda0-4d89-bea9-3b21bcb7320f.png)

#Practical 7 :

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

![image](https://user-images.githubusercontent.com/81670997/170633807-12b23aa7-72cf-4850-b484-92ef60f9b09a.png)

#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.

![image](https://user-images.githubusercontent.com/81670997/170633946-3a80cf3a-907b-48a0-bfc5-a8adcae1f9df.png)

#Practical 9 :

Write a program that prompts the user to enter two integers and compute the gcd of two integers.

![image](https://user-images.githubusercontent.com/81670997/170850612-7c2c81ea-4b42-45e6-bcdf-eb9a676c0fb4.png)

#Practical 10 :

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

![image](https://user-images.githubusercontent.com/81670997/170852912-5c5f79ad-346a-4496-9ba0-1834c7bdb868.png)