https://github.com/yas-siin/answerquestion-csharp
AnswerQuestion
https://github.com/yas-siin/answerquestion-csharp
console-application csharp
Last synced: 4 months ago
JSON representation
AnswerQuestion
- Host: GitHub
- URL: https://github.com/yas-siin/answerquestion-csharp
- Owner: YAS-SIIN
- Created: 2024-08-15T13:40:08.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-16T15:49:45.000Z (over 1 year ago)
- Last Synced: 2025-04-09T11:12:16.472Z (about 1 year ago)
- Topics: console-application, csharp
- Language: C#
- Homepage:
- Size: 31.3 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AnswerQuestion-Csharp
Language: Csharp
A Csharp console application 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 whish 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 “
```
## Example
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