Skip to content

nezihatklc/Java_Console_App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 

Repository files navigation

🎓 Java Console Application

CMPE343 – Course Project #1
A menu-driven console application developed in Java. The program guides the user through different school levels, each containing specific algorithmic and logical operations.


📌 Table of Contents


📖 About the Project

This project is a Java console application developed for the CMPE343 – Fundamentals of Java Programming course.

When the application starts, it displays a welcome screen with colorful ASCII Art and team member names. The user is then prompted to select an option from the main menu.

Main Menu Options

  • A – Primary School
  • B – Secondary School
  • C – High School
  • D – University
  • E – Terminate

The program continues running until the user selects the Terminate option. Invalid inputs are handled without stopping execution, and the screen is cleared after each operation for a clean interface.


🏫 School Levels and Features

🟢 Primary School

This level focuses on basic string manipulation and date calculations.

1. Age and Zodiac Sign Detection

  • The user enters their date of birth (day, month, year).
  • The program calculates:
    • Age in years, months, and days
    • Zodiac sign
  • Calculations are performed without using built-in date/time libraries.

2. Reverse the Words

  • The user provides a text input (Turkish characters supported).
  • Every word containing two or more letters is reversed.
  • Numbers and punctuation marks remain unchanged.
  • The operation is implemented using a recursive method.

3. Return to Main Menu


🔵 Secondary School

This level includes mathematical algorithms and expression evaluation.

1. Prime Numbers

  • The user enters an integer n ≥ 12.
  • Prime numbers up to n are generated using:
    • Sieve of Eratosthenes
    • Sieve of Sundaram
    • Sieve of Atkin
  • For each algorithm, the program displays:
    • The first 3 and last 2 prime numbers
    • The execution time

2. Step-by-step Evaluation of Expression

  • The user enters a mathematical expression.
  • Supported operators: + - x : ( )
  • Invalid characters or mismatched parentheses trigger a re-entry prompt.
  • The expression is evaluated:
    • According to operator precedence
    • Step by step
    • Using recursive evaluation
  • Each evaluation step is printed to the console.

3. Return to Main Menu


🟡 High School

This level focuses on arrays and statistical computations.

1. Statistical Information about an Array

  • The user enters the array size and elements (double values).
  • The program calculates:
    • Median
    • Arithmetic mean
    • Geometric mean
    • Harmonic mean (calculated recursively)
  • Proper median calculation is applied for even-sized arrays.

2. Distance between Two Arrays

  • The user enters the dimension and elements of two arrays (values between 0–9).
  • The program calculates:
    • Manhattan Distance
    • Euclidean Distance
    • Cosine Similarity
  • Invalid inputs trigger warnings and require re-entry.

3. Return to Main Menu


🔴 University

This level contains the Connect Four game.

  • The user selects the board size:
    • 5×4, 6×5, or 7×6
  • Game modes:
    • Single Player (against the computer)
    • Two Players
  • Game rules and features:
    • Players take turns dropping discs into columns
    • If a column is full, the player must choose another column
    • The screen is refreshed after each move
    • The game ends when:
      • A player connects four discs
      • The board is full (draw)
      • A player quits the game
  • In Single Player mode, the computer makes random moves

🛠️ Technologies Used

  • Java
  • Java Console (CLI)
  • Git & GitHub
  • JavaDoc

📸 Screenshots

image image image

👩‍💻 Contributors

Zeynep Sıla Şimşek

Pelin Cömertler

Simay Mutlu

Nezihat Kılıç

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •