Skip to content

Kalyoncuguller/JavaBasicsAssignement

 
 

Repository files navigation


Java Programming Assignments

Welcome to the Java Programming Assignments repository! This collection of assignments is designed to enhance your Java programming skills. Each assignment targets specific programming concepts, allowing you to gradually master various aspects of Java. Please read the following instructions carefully before you begin.

Table of Contents

Assignment Overview

In this set of 25 assignments, you will explore different Java programming concepts and apply them to solve a variety of problems. The assignments cover topics such as basic syntax, loops, conditional statements, arrays, object-oriented programming, file handling, and more.

Prerequisites

Before starting these assignments, make sure you have the following:

  • Basic understanding of Java syntax.
  • Java Development Kit (JDK) installed on your computer.
  • An Integrated Development Environment (IDE) or a text editor for writing Java code.

Getting Started

  1. Clone this repository to your local machine using the following command:
    git clone <repository-url>
    
  2. Navigate to the project folder:
    cd JavaAssignments
    
  3. Create a new Java file for each assignment (e.g., Assignment1.java, Assignment2.java, etc.) and write your solutions in these files.

Assignment List

1. Hello, World! (1 point)

Write a Java program that prints "Hello, World!" to the console.

2. Simple Calculator (2 points)

Create a calculator that performs basic arithmetic operations based on user input.

3. Even or Odd (2 points)

Determine whether a number entered by the user is even or odd.

4. Factorial Calculator (3 points)

Calculate the factorial of a number using loops.

5. Fibonacci Sequence (3 points)

Generate the Fibonacci sequence up to a specified number of terms.

6. Palindrome Check (3 points)

Determine whether a given string is a palindrome.

7. Sum of Digits (2 points)

Calculate the sum of digits in a positive integer.

8. Multiplication Table (3 points)

Display the multiplication table of a number.

9. Prime Number Checker (3 points)

Check if a given number is prime or composite.

10. Reverse a String (2 points)

Reverse a string without using built-in functions.

11. Array Sum and Average (3 points)

Calculate the sum and average of elements in an array.

12. Array Sorting (3 points)

Implement a sorting algorithm for an integer array.

13. Linear Search (3 points)

Perform a linear search in an array to find a specific element.

14. Binary Search (4 points)

Implement binary search on a sorted array.

15. Matrix Operations (4 points)

Perform addition and multiplication of two matrices.

16. Armstrong Number (3 points)

Determine if a number is an Armstrong number.

17. File Reading and Writing (4 points)

Read data from a file, manipulate it, and write the results back to a file.

18. Exception Handling (4 points)

Handle exceptions (e.g., division by zero) in a Java program.

19. Object-Oriented Concepts (5 points)

Create classes and objects, demonstrate inheritance, encapsulation, and polymorphism.

20. Recursion (4 points)

Implement recursive functions for factorial calculation, Fibonacci series, etc.

21. Linked Lists (5 points)

Implement a linked list with basic operations like insertion, deletion, and traversal.

22. Stack Implementation (4 points)

Implement a stack using arrays or linked lists.

23. Queue Implementation (4 points)

Implement a queue using arrays or linked lists.

24. Tree Traversals (5 points)

Implement in-order, pre-order, and post-order traversals of a binary tree.

25. Graph Algorithms (5 points)

Implement graph traversal algorithms (BFS, DFS) for a given graph.

Submission Guidelines

  1. Create a separate Java file for each assignment (e.g., Assignment1.java, Assignment2.java, etc.).
  2. Commit your changes to the corresponding files.
  3. Push your changes to the GitHub repository.
  4. Submit the link to your GitHub repository.

Grading Criteria

The grading criteria for each assignment are mentioned in the assignment description. Ensure your solutions are well-commented, follow best practices, and handle edge cases appropriately.

Additional Notes

  • Feel free to ask for help or clarification if you encounter difficulties.
  • You are encouraged to explore additional resources and examples to enhance your understanding.
  • Happy coding and enjoy the learning process!

Good luck with your assignments! If you have any questions, don't hesitate to reach out.


🌐All about us 🌐

🔗 Orcid 🔗 ResearchGate 🔗 Medium 🔗 LinkedIn 🔗 SciProfiles 🔗 Web of Science 🔗 TU Wien Profile

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%