Giter VIP home page Giter VIP logo

oop_lab_ktu_s3's Introduction

OOP_Lab_KTU_S3

Set of all programs and their algorithms as prescribed by KTU 2019 syllabus for CSE S3 Object-Oriented Programming using Java

Programs

Cycle 1

  1. Java program to check whether a given number is prime or not
  2. Java program that checks whether a given string is palindrome or not
  3. Java program to find frequency of character in a string
  4. Java program to reverse any given string
  5. Java program to find second smallest element in an array
  6. Java program to multiply 2 matrices
  7. Java program to display transpose of a matrix

Cycle 2

  1. Java program to calculate area of shapes
  2. Java program to understand inheritance
  3. Java program to understand method overriding
  4. Java program to create an abstract class
  5. Java program to illustrate interface inheritance
  6. Java program to demonstrate use of garbage collector

Cycle 3

  1. File handling in java with reader/writer
  2. Java program to read a file and display a file on screen with line number.
  3. Java program that displays the number of characters, lines and words in a text file
  4. Java program that reads data from file and writes to it by handling all file related exception
  5. Java program that uses string tokenizer

Cycle 4

  1. Java program that shows the usage of try, catch, throws and finally
  2. Java program that shows how to create a user defined exception
  3. Java program that implements a multi-threaded program
  4. Java program that shows thread synchronization
  5. Java program to create two threads
  6. Java program that shows thread priorities

Cycle 5

  1. Java program that allows user to draw lines, rectangles, and ovals
  2. Java program for handling mouse events
  3. Java program for handling key events using adapter class
  4. Java swing program to print a waveform on output screen
  5. Java program that works as a simple calculator
  6. Java program that simulates traffic light

Cycle 6

  1. Java program that implements a doubly linked list
  2. Java program that implements binary search algorithm
  3. Java program that implements quick sort algorithm
  4. Java program that implements heap sort algorithm

Note: All programs are written in Java 18.0.1 and tested on JDK 18.0.1 Note: In cycles 1, 2, & 5 internal lab exams were conducted and are separetely uploaded in the repository

How to run

  1. Clone the repository
  2. go to the directory of the program you want to run
  3. Open the terminal in that directory
  4. Type javac <filename>.java to compile the program
  5. Then type java <filename> to run the program
  6. If you want to run the program with input, type java <filename> < input.txt in the terminal
  7. If you want to run the program with output, type java <filename> > output.txt in the terminal
  8. If any Issues, feel free to open an issue or contact me at my email

Contributions

Contributions are welcome. Please open an issue or a pull request to contribute.

Star the repository if you like it. Thanks! ๐Ÿ˜„

oop_lab_ktu_s3's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.