Giter Site home page Giter Site logo

javas3lab1's Introduction

JavaS3Lab

KTU Semester 3 Java Lab Cycle 1

Program Contents :-

  1. Print "Hello World"
  2. Add two numbers
  3. Check if given number is odd or even
  4. Check if given number is prime or nah
  5. Find sum of first 'n' natural numbers
  6. Find the factors of a given number
  7. Print The Fibonacci Series
  8. Find factorials of first 'n' numbers
  9. Check if given number is a Palindrome or not
  10. Check to see if a given number is an Armstrong number

KTU Semester 3 Java Lab Cycle 2

Program Contents :-

  1. Write a Java class having overloaded methods to calculate area of rectangle and circle.

  2. Define a class Queue for representing a queue data structure. The class must define a default constructor, a parameterized constructor and functions for enqueue, de-queue and display operations. Write a Java program to implement this.

  3. Write a program to print the area and perimeter of a triangle having sides of 3, 4 and 5 units by creating a class named 'Triangle' without any parameter in its constructor.

  4. Write a program to print the area of a rectangle by creating a class named 'Area' taking the values of its length and breadth as parameters of its constructor and having a method named 'returnArea' which returns the area of the rectangle. Length and breadth of rectangle are entered through keyboard.

  5. Create a class with a method that prints "This is parent class" and its subclass with another method that prints "This is child class". Now, create an object for each of the class and call

         1 - method of parent class by object of parent class
         
         2 - method of child class by object of child class
         
         3 - method of parent class by object of child class
    

javas3lab1's People

Contributors

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