Giter VIP home page Giter VIP logo

itsyourap / cbtcip Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 14.04 MB

CipherByte Technologies Internship Tasks for Java Programming

Home Page: https://www.linkedin.com/posts/itsyourap_cipherbyte-java-internship-letter-activity-7125323013712994306-NOC_?utm_source=share&utm_medium=member_desktop

Java 100.00%
cbtc first-year intern internship internship-projects internship-task internship-tasks java-developer java-internship student

cbtcip's Introduction

CipherByte Technologies Internship Tasks

Table of contents

Description

This is a simple game where the user has to guess a number between 1 and 100. The user has 10 chances to guess the number. If the user guesses the number correctly, he/she wins the game. If the user is unable to guess the number in 10 chances, he/she loses the game.

Rules

  • This program generates a random number between 1 and 100 and asks the user to guess the number.
  • The user has 10 guesses to guess the number correctly.
  • If the user guesses the number correctly, the program prints "You guessed the number!" and exits.
  • If the user does not guess the number correctly, the program prints "Your guess is too high!" or "Your guess is too low!" depending on whether the guess is higher or lower than the random number.
  • If the user does not guess the number correctly in 10 guesses, the program prints "You ran out of guesses!" and exits.
  • The program also prints the random number after the user has run out of guesses.
  • The program then asks the user if they want to play again. If the user enters "yes", the program generates a new random number and asks the user to guess the number again.
  • If the user enters "no", the program exits.
  • This program also has rounds feature
  • The program also displays the points scored in total throughout the rounds

How to run

  • Clone the repository
git clone https://github.com/itsyourap/CBTCIP/
  • Navigate to the Task1_GuessTheNumber directory
cd CBTCIP/Task1_GuessTheNumber
  • Compile the program
javac -classpath "src/;" src/GuessTheNumber.java
  • Run the program
java -cp "src/" GuessTheNumber

Description

This is a simple ATM application that allows the user to perform the following operations:

  • Getting user input for User ID and PIN
  • Validating the User ID and PIN
  • Displaying the main menu
  • Getting user input for the main menu
  • Performing the selected action
  • Displaying the result of the action
  • Returning to the main menu
  • Exiting the application

The main menu has the following options:

  • Withdraw
  • Deposit
  • Transfer
  • Show Transaction History
  • Exit

How to run

  • Clone the repository
git clone https://github.com/itsyourap/CBTCIP/
  • Navigate to the Task2_ATM directory
cd CBTCIP/Task2_ATM/
  • Compile the program
javac -classpath "src/;../lib/sqlite-jdbc-3.44.0.0.jar;../lib/slf4j-api-1.7.36.jar" src/ATM.java
  • Run the program
java -cp "src/;../lib/sqlite-jdbc-3.44.0.0.jar;../lib/slf4j-api-1.7.36.jar" ATM

cbtcip's People

Contributors

itsyourap avatar

Watchers

 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.