Giter Club home page Giter Club logo

qatest's Introduction

QuestionAndAnswer

Write a java command line program that gives me two options. One to ask a specific question and the other option is to add questions and their answers

Therefore the following restrictions apply:

  • A Question is a String with max 255 chars
  • An Answer is a String with max 255 chars
  • A Question can have multiple answers (like bullet points)
  • If the user asks a question it has to be exactly the same as entered – no “best match”.
  • If the user asks a question which is not stored yet the program should print “the answer to life, universe and everything is 42” according to “The hitchhikers guide to the Galaxy”
  • If the user asks a question which is stored the program should print all answers to that question. Every Answer in a separate line
  • adding a question looks like:
    • ? “” “” “”
    • Char “?” is the separator between question and answers
    • Every Question needs to have at least one answer but can have unlimited answers all inside of char “
  • Provide tests
  • Provide the source code on any GIT repo worldwide (GITLAB, GITHUB, whatever you prefer and/or use)
  • No other restrictions apply

Examples

  • Adding a question:

    • What is Peters favorite food? “Pizza” “Spaghetti” “Ice cream”
  • Asking a question which is in the system:

    • What is Peters favorite food?
      • Answers will be
        • Pizza
        • Spaghetti
        • Ice cream
  • Asking a question which is not in the system:

    • When is Peters birthday?
      • Answer will be
        • the answer to life, universe and everything is 42

qatest's People

Contributors

vmga00 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.