https://github.com/vishal-sys-code/oops-lab
This is my laboratory work which given in college I shared here for personal use. [Java-OOPs-LAB]
https://github.com/vishal-sys-code/oops-lab
java-8 oops-in-java
Last synced: 3 months ago
JSON representation
This is my laboratory work which given in college I shared here for personal use. [Java-OOPs-LAB]
- Host: GitHub
- URL: https://github.com/vishal-sys-code/oops-lab
- Owner: Vishal-sys-code
- Created: 2021-09-14T08:52:00.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-27T19:40:34.000Z (over 4 years ago)
- Last Synced: 2024-12-28T11:13:44.107Z (about 1 year ago)
- Topics: java-8, oops-in-java
- Language: Java
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OOPS LABORATORY WORK
In this repository it contains my all java programs(object oriented) which are done in my college laboratory.
# Clone
If you want to clone this repository then follow these steps:
a.) Open your folder in which you want to clone
b.) Open the git-bash in that folder
c.) Paste this code:
Using HTTPS :- git clone https://github.com/Vishal-sys-code/OOPS-LAB.git
Using SSH:- git clone git@github.com:Vishal-sys-code/OOPS-LAB.git
d.) Now, enjoy!!!
# Topics
Day-1:
a.) Print "Welcome to JAVA Programming"
b.) Print the Command Line Arguments
c.) Take two integers and print their sum,difference and product.
d.) Take an integer from user(in command line)and check whether it is prime or not.
e.) Take three sides of a triangle from the user(using command line) and calculate permeter and area of the triangle.
f.) Accept a number N and a string and display the string n-times(using command line)
g.) WAP to convert a Fahrenheit to Celcius.
h.) Print the two patterns given below:
1 *
2 2 * *
3 3 3 * * *
4 4 4 4 * * * *
i.) WAP to demonstrate the use of different methods of Math Class.
----------------------------------------------------------------------------------------------------------------------
GO TO ASSIGNMENT_1 and find the related files:
a.) welcome.java
b.) commandline.java
c.) sdp.java
d.) primecmd.java
e.) trianglecmd.java
f.) stringrepeat.java
g.) thermal.java
h.) pattern1.java(FOR NUMBERS) || pattern2.java(FOR STARS)
i.) math.java
----------------------------------------------------------------------------------------------------------------------------
Day-2:
An Introduction to Classes and Objects
a.) Create a Box class and add method called set Data () to initialised the data member. Add
another method that will return volume of the Box. Using a Demo class to demonstrate by
creating two box objects and find which box having bigger size.
b.) Create a class called Bank_Account with following data member and member function
i) Account_Holder_Name, Account_Number, Account_Type(S for savings, C for current),
balance
ii) withdraw_money() and deposit_money() with proper prototype.
----------------------------------------------------------------------------------------------------------------------
GO TO ASSIGNMENT_2 and find the related files:
a.) Question1 for Box Class
b.) Question2 for Bank Class