This repository contains solutions to various programming challenges that I have completed as part of the Java101 course. The challenges cover a wide range of topics such as basic syntax, loops, conditionals, arrays, methods, object-oriented programming (OOP), and much more. Each file represents a specific task or problem solved in Java.
The repository contains the following Java classes:
- AdvancedCalculator.java: A basic calculator that can handle multiple operations.
- AirplaneTicketCalculator.java: A program to calculate the price of an airplane ticket based on various parameters.
- AreaOfCircleCalculator.java: A program to calculate the area of a circle given the radius.
- ArrayAverageHarmonic.java: Computes the harmonic average of an array of numbers.
- ArraySorting.java: Sorts an array in ascending or descending order.
- Atm.java: Simulates an ATM for checking balance and making withdrawals.
- AverageOfMultiples.java: Finds the average of multiples of a given number in a range.
- BodyMassIndexCalculator.java: Calculates the body mass index (BMI) based on weight and height.
- Calculator.java: A simple calculator with basic operations (addition, subtraction, multiplication, division).
- ChineseZodiac.java: Determines the Chinese zodiac sign based on the user's birth year.
- ClosestNumbers.java: Finds the closest pair of numbers in an array.
- CombinationCalculator.java: Calculates the combination of two numbers.
- DeseneGoreMethodOlusturma.java: Creates patterns based on a given design.
- Diamond.java: Prints a diamond pattern made of stars.
- DigitSumCalculator.java: Calculates the sum of digits of a given number.
- EvenAndMultiplesOfFourSum.java: Sums the even numbers and the multiples of four in an array.
- ExponentiationCalculato.java: Performs exponentiation of a number.
- FibonacciSeriesCalculator.java: Generates the Fibonacci series up to a given term.
- FindingRepeatingEvenNumbers.java: Finds repeating even numbers in an array.
- FrequencyCounter.java: Counts the frequency of each element in an array.
- FruitStoreCashRegister.java: Simulates a fruit store cash register by calculating the total cost.
- GCDAndLCMCalculator.java: Finds the GCD (Greatest Common Divisor) and LCM (Least Common Multiple) of two numbers.
- GradeAverageCalculator.java: Calculates the average grade from multiple subjects.
- HarmonicSeriesCalculator.java: Computes the harmonic series sum.
- HoroscopeCalculator.java: Determines the horoscope sign based on the user's birthdate.
- InvertedTriangleDrawer.java: Draws an inverted triangle pattern with stars.
- LeapYearCalculator.java: Determines if a given year is a leap year.
- MatrisTranspoze.java: Transposes a matrix.
- MinMaxCalculator.java: Finds the minimum and maximum values in an array.
- NumberGuessingGame.java: A simple game where the user guesses a random number.
- Palindrom.java: Checks if a number is a palindrome.
- PalindromicWords.java: Finds palindromic words in a given string.
- PassingStatus.java: Determines if a student has passed or failed based on their grade.
- PerfectNumberChecker.java: Checks if a number is a perfect number.
- PrimeNumberFinder.java: Finds all prime numbers up to a given limit.
- PrintB.java: Prints the letter "B" using stars.
- PrintPowersOfFourAndFive.java: Prints the powers of 4 and 5 up to a given number.
- RecursiveExponentiation.java: Calculates exponentiation using recursion.
- RecursivePattern.java: Prints a recursive pattern of numbers or symbols.
- RecursivePrimeNumber.java: Finds prime numbers using recursion.
- SortNumbers.java: Sorts a list of numbers in ascending order.
- TaximeterCalculator.java: Simulates the calculation of a taximeter fare.
- TemperatureActivity.java: Suggests an activity based on the current temperature.
- TriangleAreaCalculator.java: Calculates the area of a triangle.
- UserLogin.java: Simulates a user login system.
- VATCalculator.java: Calculates the VAT for a given price.
- Java 8+: The primary programming language used for all solutions.
- Eclipse/IntelliJ IDEA: IDEs used for development.
-
Clone the repository:
git clone https://github.com/sedaozkaya/java101-programming-challenges.git
-
Navigate to the directory containing the Java class files.
cd java101-programming-challenges -
Compile and run any Java class. For example, to run the
AdvancedCalculator.java:javac AdvancedCalculator.java java AdvancedCalculator
Feel free to fork this repository and create pull requests if you'd like to contribute. Please ensure that your code follows the Java naming conventions and is well-documented.
This project is open source and available under the MIT License.