Skip to content

Soundarya-2004/Oasis-Infobyte-Internship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Oasis-Infobyte-Internship

Java Projects Repository

Welcome to the Java Projects Repository! This repository contains two beginner-to-intermediate level Java applications: Number Guessing Game and ATM Simulation.

Projects Overview

1. Number Guessing Game

The Number Guessing Game is a simple and interactive program where the user tries to guess a randomly generated number between 1 and 100. The program provides clues to narrow down the range after each guess and awards points based on the number of attempts.

Features:

  • Random number generation between 1 and 100.
  • User-friendly clues for narrowing down the guess range.
  • Scoring system based on the number of attempts:
    • 5 attempts: 10 points
    • 4 attempts: 20 points
    • 3 attempts: 30 points
    • 2 attempts: 40 points
    • 1 attempt: 50 points
  • Option to replay the game after completion.

How to Run:

  1. Compile the code using any Java compiler (e.g., javac Task_2.java).
  2. Run the program using java Task_2.
  3. Follow the prompts to play the game!

2. ATM Simulation

The ATM Simulation is a basic command-line application that mimics some functionalities of an ATM. The user can check their balance, deposit money, withdraw funds, and exit the session.

Features:

  • PIN authentication with up to 3 attempts.
  • Options for:
    • Checking balance.
    • Depositing money.
    • Withdrawing money.
  • Error handling for invalid amounts and insufficient funds.
  • User-friendly menu-driven interface.

How to Run:

  1. Compile the code using any Java compiler (e.g., javac ATM.java).
  2. Run the program using java ATM.
  3. Follow the prompts to interact with the ATM simulation.

Requirements

  • JDK version 8 or higher.
  • Command-line interface for running Java programs.

Installation

  1. Clone this repository:
    git clone https://github.com/your-username/your-repo-name.git
  2. Navigate to the project folder:
    cd your-repo-name
  3. Compile and run the Java files.

Usage

Number Guessing Game:

  • Open a terminal and navigate to the project folder.
  • Compile the file:
    javac Task_2.java
  • Run the program:
    java Task_2
  • Enjoy guessing the random number!

ATM Simulation:

  • Open a terminal and navigate to the project folder.
  • Compile the file:
    javac ATM.java
  • Run the program:
    java ATM
  • Follow the menu options to interact with the ATM.

Contributing

We welcome contributions to enhance these projects or to add new Java programs to the repository. Follow these steps to contribute:

  1. Fork this repository.
  2. Create a new branch for your feature or bug fix:
    git checkout -b feature-name
  3. Commit your changes:
    git commit -m "Add feature or fix"
  4. Push to your branch:
    git push origin feature-name
  5. Submit a pull request.

License

This repository is licensed under the MIT License. You can freely use and modify the code, but proper attribution is appreciated.


Contact

If you have any questions or suggestions, feel free to contact:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages