Giter VIP home page Giter VIP logo

palak807 / simplebot Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 5 KB

This Java code for a simple chatbot includes basic functionalities such as greeting the user, guessing their age, counting to a given number, and testing their programming knowledge. Users can interact with the bot via the console. The code is suitable for beginners who want to learn how to create a basic chatbot in Java.

Java 100.00%

simplebot's Introduction

Simple Chatbot

This is a simple chatbot written in Java that interacts with the user via the console. The chatbot can perform basic functionalities such as greeting the user, guessing their age, counting to a given number, and testing their programming knowledge.

How to use

  1. Clone the repository to your local machine.
  2. Open the project in an IDE or text editor that supports Java.
  3. Run the SimpleBot.java file to start the chatbot.
  4. Follow the prompts in the console to interact with the chatbot.

Features

Greeting

The chatbot greets the user and introduces itself by printing its name and birth year.

Remind Name

The chatbot asks the user to input their name and stores it for later use.

Guess Age

The chatbot asks the user to input remainders of dividing their age by 3, 5, and 7, then uses a formula to guess their age and prints it to the console.

Count

The chatbot asks the user to input a number, then counts from 0 to that number.

Test

The chatbot tests the user's programming knowledge by asking a multiple-choice question and prompting the user to select an answer. The chatbot will continue to prompt the user until they select the correct answer.

End

The chatbot congratulates the user and ends the conversation.

Contributing

Feel free to contribute to this project by submitting pull requests or opening issues.

License

This project is licensed under the MIT License.

simplebot's People

Contributors

palak807 avatar

Stargazers

 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.