Skip to content

This is my laboratory work which given in college I shared here for personal use. [Java-OOPs-LAB]

Notifications You must be signed in to change notification settings

Vishal-sys-code/OOPS-LAB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 

About

This is my laboratory work which given in college I shared here for personal use. [Java-OOPs-LAB]

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages