Giter Club home page Giter Club logo

java-lab-programs's Introduction

JAVA-lab-programs

List of all the lab programs done for 3rd Sem students, 2022

🔖Steps to Contribute

Following are the steps to guide you:

  • Step 1: Star and Fork the repo Go to your Git terminal and clone it on your machine.
  • Step 2: Add an upstream link to the main branch in your cloned repo
  • Step 3: Keep your cloned repo up to date by pulling from upstream (this will also avoid any merge conflicts while committing new changes)
  • Step 4: Create your feature branch (This is a necessary step, so don't skip it)
    git checkout -b <feature-name>
    
  • Step 5: Commit all the changes (Write commit message)
    git commit -m "Write a meaningful but small commit message"
    
  • Step 6: Push the changes for review
    git push origin <branch-name>
    
  • Step 7: Create a PR on Github. (Don't just hit the create a pull request button, you must write a PR message to clarify why and what are you contributing)

File format

  • Upload entire program of different classes in one file
  • File name - Question section + Question number.java (ie. A5.java)
  • The main class must be named Main and must be present at end of code file
  • The file must contain relevent comments

Questions List

A. Extra ques

  1. Complex addition --ALAN
  2. Employee get data, sort, display --AUB
  3. Teacher gives pen to student, student open cap, write something closes cap --ADITYA PRAKASH
  4. Develop a java application to implement currency converter (Dollar to INR, EURO to INR, Yen to INR and vice versa), distance converter (meter to KM, miles to KM and vice versa), time converter (hours to minutes, seconds and vice versa) using packages. --ANAGHA G
  5. Factory design pattern- car --AKASH
  6. Factory design pattern- email --ALAN, AMIT
  7. Factory design pattern- bank --ALAN
  8. Singleton class --ALAN
  9. Singleton class using 4 objects --ALAN
  10. Write a program using class to process Shopping List for a departmental store. The list includes details such as the Code No and Price of each item and performs the operations like Adding , Deleting Items to the list and Printing the Total value of an Order. --AADHYA
  11. first occurrence of character, repeated characters list, character that repeats itself earliest --ALAN
  12. Enhanced for loop demo --ALAN
  13. Object direct printing Using toString --ALAN
  14. Basic inheritance demo --ADITYA PRAKASH
  15. String operations --ALAN
  16. String constant, non constant --ALAN
  17. Palindrome check --ALAN
  18. Simple Array list program --ALAN
  19. Array List with Loose Coupling --ALAN
  20. Array list demo using generics (student class in arraylist) --AUB
  21. Array list sorting of user-defined objects (using comparator and comparable) --ALAN, V2 --ADITYA PRAKASH
  22. Array list sorting of user-defined objects (using comparator) --ADITYA PRAKASH
  23. Array list sorting of user-defined objects (using comparable) --AUB
  24. Facade design pattern --ALAN
  25. Priority Queues
    1. Priority queue of user defined class objects -- AUB
    2. Priority queue demo --AUB
  26. Exception Handling programs
    1. Using finnaly demo --AUB
    2. Creating exception demo 1 --AUB
    3. Creating exception demo 2 --AUB
    4. Using throws --AUB
    5. Using throwable --AUB

B. LAB programs

  1. Write a java program that prints all real solutions to the quadratic equation ax2+bx+c=0. Read in a, b, c and use the quadratic formula --AADHYA
  2. Create a Java class called Student with the following details as variables within it. USN Name Branch Phone Write a Java program to create n Student objects and print the USN, Name, Branch, and Phone of these objects with suitable headings. --ALAN
  3. Write a program to check prime number --ADITYA PRAKASH
  4. Write a program for Arithmetic calculator using switch case menu --ANAGHA G
  5. Design a super class called Staff with details as StaffId, Name, Phone, Salary. Extend this class by writing three subclasses namely Teaching (domain, publications), Technical skills), and Contract (period). Write a Java program to read and display at least 3 staff objects of all three categories. --ADITYA PRAKASH
  6. Write a java program demonstrating Method overloading and Constructor overloading (room area) --ADITYA PRAKASH
  7. Write a program to generate the resume. Create 2 Java classes Teacher (data: personal information, qualification, experience, achievements) and Student (data: personal information, result, discipline) which implements the java interface Resume with the method biodata(). --ADITYA PRAKASH
  8. Write a program to perform string operations using ArrayList. Write functions for the following a. Append - add at end b. Insert – add at particular index c. Search d. List all string starts with given letter. --ALAN
  9. Write a Java program to read two integers a and b. Compute a/b and print, when b is not zero. Raise an exception when b is equal to zero. --ALAN
  10. Write a Java program that implements a multi-thread application that has three threads. First thread generates a random integer for every 1 second; second thread computes the square of the number and prints; third thread will print the value of cube of the number.
  11. Write a java program that reads a file name from the user, displays information about whether the file exists, whether the file is readable, or writable, the type of file and the length of the file in bytes
  12. Develop an applet that displays a simple message in center of the screen. Develop a simple calculator using Swings. --ALAN

Need more help?

You can refer to the following articles on the basics of Git and Github and also contact me, in case you are stuck:

Tip from Me

It always takes time to understand and learn. So, do not worry at all. You can do this!

Typing SVG

MIT LICENSE

java-lab-programs's People

Contributors

aditub avatar 1rn21cs018alan avatar adityaprakash754 avatar shanks28 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.